RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Tracker_3DMouse.h
1#ifndef __TRACKER_3DMOUSE_H
2#define __TRACKER_3DMOUSE_H
3
4#include "vrpn_Button.h" // for vrpn_Button_Filter
5#include "vrpn_Configure.h" // for VRPN_API
6#include "vrpn_Tracker.h" // for vrpn_Tracker_Serial
7
8class VRPN_API vrpn_Connection;
9
11
12 public:
13
14 vrpn_Tracker_3DMouse(const char *name,
16 const char *port = "/dev/ttyS1",
17 long baud = 19200,
18 int filtering_count = 1);
19
21
23 virtual void mainloop();
24
25
26 protected:
27
28 virtual void reset();
29 virtual int get_report(void);
30 bool set_filtering_count(int count);
31 virtual void clear_values(void);
32
33 unsigned char _buffer[2048];
34 int _filtering_count;
35 int _numbuttons;
36 int _count;
37};
38
39#endif
定义 vrpn_Button.h:66
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_Tracker_3DMouse.h:10
virtual int get_report(void)
virtual void mainloop()
Called once through each main loop iteration to handle updates.
virtual void reset()
Reset the tracker.
定义 vrpn_Tracker.h:144