vrpn
07.33
Virtual Reality Peripheral Network
vrpn_Joylin.h
Go to the documentation of this file.
1
/*
2
# Linux Joystick. Interface to the Linux Joystick driver by Vojtech Pavlik
3
# included in several Linux distributions. The server code has been tested
4
# with Linux Joystick driver version 1.2.14. Yet, there is no way how to
5
# map a typical joystick's zillion buttons and axes on few buttons and axes
6
# really used. Unfortunately, even joysticks of the same kind can have
7
# different button mappings from one to another. Driver written by Harald
8
# Barth (haba@pdc.kth.se).
9
*/
10
11
#ifndef VRPN_JOYLIN
12
#define VRPN_JOYLIN
13
#include "
vrpn_Analog.h
"
// for vrpn_Analog
14
#include "
vrpn_Button.h
"
// for vrpn_Button_Filter
15
#include "
vrpn_Configure.h
"
// for VRPN_API
16
17
class
VRPN_API
vrpn_Connection
;
18
19
20
class
VRPN_API
vrpn_Joylin
:
public
vrpn_Analog
,
public
vrpn_Button_Filter
{
21
public
:
22
vrpn_Joylin
(
char
* name,
vrpn_Connection
* c,
char
* portname);
23
~
vrpn_Joylin
();
24
25
void
mainloop
(
void
);
26
27
#ifdef VRPN_USE_JOYLIN
28
protected
:
29
int
init
();
30
#endif
31
private
:
32
int
namelen;
33
int
fd;
34
int
version;
35
char
*devname;
36
char
*device;
37
};
38
39
40
#endif
vrpn_Joylin
Definition:
vrpn_Joylin.h:20
vrpn_Analog
Definition:
vrpn_Analog.h:28
vrpn_Button.h
vrpn_BaseClass::mainloop
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Connection
Generic connection class not specific to the transport mechanism.
Definition:
vrpn_Connection.h:510
vrpn_Analog.h
vrpn_BaseClass::init
virtual int init(void)
Initialize things that the constructor can't. Returns 0 on success, -1 on failure.
Definition:
vrpn_BaseClass.C:363
vrpn_Configure.h
VRPN_API
#define VRPN_API
Definition:
vrpn_Configure.h:646
vrpn_Button_Filter
All button servers should derive from this class, which provides the ability to turn any of the butto...
Definition:
vrpn_Button.h:65
vrpn_Joylin.h
Generated by
1.8.16