vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Tracker_GameTrak.h
Go to the documentation of this file.
1 /*
2  * vrpn_Tracker_GameTrak.h
3  *
4  * Created on: Nov 22, 2010
5  * Author: janoc
6  */
7 
8 #ifndef VRPN_TRACKER_GAMETRAK_H_
9 #define VRPN_TRACKER_GAMETRAK_H_
10 
11 #include "vrpn_Analog.h" // for vrpn_ANALOGCB, etc
12 #include "vrpn_Configure.h" // for VRPN_API, VRPN_CALLBACK
13 #include "vrpn_Shared.h" // for timeval
14 #include "vrpn_Tracker.h" // for vrpn_Tracker
15 #include "vrpn_Types.h" // for vrpn_float64
16 
18 
20 {
21  public:
22  vrpn_Tracker_GameTrak(const char * name, vrpn_Connection * trackercon, const char *joystick_dev, int *mapping);
23 
24  virtual void mainloop ();
25 
26  virtual ~vrpn_Tracker_GameTrak();
27 
28  protected:
29  int _mapping[6];
30 
32  vrpn_float64 _sensor0[3], _sensor1[3];
33  struct timeval _timestamp;
34 
36 
37  static void VRPN_CALLBACK handle_update (void *, const vrpn_ANALOGCB);
38 };
39 
40 #endif /* VRPN_TRACKER_GAMETRAK_H_ */
Generic connection class not specific to the transport mechanism.
#define VRPN_CALLBACK
#define VRPN_API
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Analog_Remote * _analog