RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Tracker_SpacePoint.h
1/*
2 * vrpn_Tracker_SpacePoint.h
3 *
4 * Created on: Nov 22, 2010
5 * Author: janoc
6 */
7
8#ifndef VRPN_TRACKER_SPACEPOINT_H_
9#define VRPN_TRACKER_SPACEPOINT_H_
10
11#include <stddef.h> // for size_t
12
13#include "vrpn_Button.h" // for vrpn_Button
14#include "vrpn_Configure.h" // for VRPN_API, VRPN_USE_HID
15#include "vrpn_HumanInterface.h" // for vrpn_HidInterface
16#include "vrpn_Shared.h" // for timeval
17#include "vrpn_Tracker.h" // for vrpn_Tracker
18#include "vrpn_Types.h" // for vrpn_uint8
19
20class VRPN_API vrpn_Connection;
21
22#ifdef VRPN_USE_HID
23
25{
26 public:
27 vrpn_Tracker_SpacePoint(const char * name, vrpn_Connection * trackercon, int index = 0);
28
29 virtual void mainloop ();
30
31 virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer);
32
33 protected:
34 bool _should_report;
35 struct timeval _timestamp;
36};
37
38#endif
39
40#endif /* VRPN_TRACKER_SPACEPOINT_H_ */
定义 vrpn_Button.h:31
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_HumanInterface.h:70
定义 vrpn_Tracker_SpacePoint.h:25
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback. It is called whenever a read returns some data.
virtual void mainloop()
定义 vrpn_Tracker.h:49