RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_JoyFly.h
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
14class VRPN_API vrpn_Connection;
16
17class 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.h:181
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_JoyFly.h:17
virtual void mainloop(void)
定义 vrpn_Tracker.h:49
定义 vrpn_Analog.h:168
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41