vrpn
07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
vrpn_JoyFly.h
Go to the documentation of this file.
1
2
3
#ifndef INCLUDED_JOYFLY
4
#define INCLUDED_JOYFLY
5
6
#include <quat.h>
// for q_matrix_type
7
#include <stdio.h>
// for NULL
8
9
#include "
vrpn_Analog.h
"
// for vrpn_ANALOGCB, etc
10
#include "
vrpn_Configure.h
"
// for VRPN_CALLBACK, VRPN_API
11
#include "
vrpn_Shared.h
"
// for timeval
12
#include "
vrpn_Tracker.h
"
// for vrpn_Tracker
13
14
class
VRPN_API
vrpn_Connection
;
15
struct
vrpn_HANDLERPARAM
;
16
17
class
VRPN_API
vrpn_Tracker_JoyFly
:
public
vrpn_Tracker
{
18
19
private
:
20
double
chanAccel [7];
21
int
chanPower [7];
22
struct
timeval prevtime;
23
24
vrpn_Analog_Remote
* joy_remote;
25
q_matrix_type initMatrix, currentMatrix;
26
27
public
:
28
vrpn_Tracker_JoyFly
(
const
char
* name,
vrpn_Connection
* c,
29
const
char
* source,
const
char
* config_file_name,
30
vrpn_Connection
* sourceConnection = NULL);
31
virtual
~vrpn_Tracker_JoyFly
(
void
);
32
33
virtual
void
mainloop
(
void
);
34
virtual
void
reset (
void
);
35
36
void
update (q_matrix_type &);
37
38
static
void
VRPN_CALLBACK
handle_joystick (
void
*,
const
vrpn_ANALOGCB
);
39
static
int
VRPN_CALLBACK
handle_newConnection (
void
*,
vrpn_HANDLERPARAM
);
40
};
41
42
#endif
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
vrpn_Analog_Remote
Definition
vrpn_Analog.h:181
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:561
vrpn_Tracker_JoyFly
Definition
vrpn_JoyFly.h:17
vrpn_Tracker
Definition
vrpn_Tracker.h:49
vrpn_ANALOGCB
Definition
vrpn_Analog.h:168
vrpn_HANDLERPARAM
This structure is what is passed to a vrpn_Connection message callback.
Definition
vrpn_Connection.h:41
vrpn_Analog.h
vrpn_Configure.h
VRPN_API
#define VRPN_API
Definition
vrpn_Configure.h:648
VRPN_CALLBACK
#define VRPN_CALLBACK
Definition
vrpn_Configure.h:649
vrpn_Shared.h
vrpn_Tracker.h
vrpn_JoyFly.h
Generated by
1.9.8