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
16
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);
40};
41
42#endif
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
vrpn_Tracker_JoyFly(const char *name, vrpn_Connection *c, const char *source, const char *config_file_name, vrpn_Connection *sourceConnection=NULL)
This object has been superceded by the vrpn_Tracker_AnalogFly object.
Definition vrpn_JoyFly.C:12
virtual void reset(void)
static void VRPN_CALLBACK handle_joystick(void *, const vrpn_ANALOGCB)
Definition vrpn_JoyFly.C:96
void update(q_matrix_type &)
static int VRPN_CALLBACK handle_newConnection(void *, vrpn_HANDLERPARAM)
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
This structure is what is passed to a vrpn_Connection message callback.
#define VRPN_API
#define VRPN_CALLBACK
class VRPN_API vrpn_Connection
This object has been superceded by the vrpn_Tracker_AnalogFly object.
Definition vrpn_JoyFly.h:14