vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Tracker_OSVRHackerDevKit.h
Go to the documentation of this file.
1 
11 #ifndef VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
12 #define VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
13 
14 #include <cstddef> // for size_t
15 #include <string> // for string
16 
17 #include "vrpn_Tracker.h" // for vrpn_Tracker
18 #include "vrpn_Configure.h" // for VRPN_API, VRPN_USE_HID
19 #include "vrpn_Connection.h" // for vrpn_Connection (ptr only), etc
20 #include "vrpn_HumanInterface.h" // for vrpn_HIDDEVINFO, etc
21 #include "vrpn_Shared.h" // for timeval
22 #include "vrpn_Types.h" // for vrpn_uint16, vrpn_uint32, etc
23 
24 #if defined(VRPN_USE_HID)
25 
59 public:
67  vrpn_Tracker_OSVRHackerDevKit(const char *name, vrpn_Connection *c = NULL);
68 
73 
77  virtual void mainloop();
78 
79 protected:
80 
82  void on_data_received(std::size_t bytes, vrpn_uint8 *buffer);
83 
85  struct timeval _timestamp;
86 
91 };
92 
93 #endif // VRPN_USE_HID
94 
95 #endif // VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
96 
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
Generic connection class not specific to the transport mechanism.
#define VRPN_API
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
bool _wasConnected
Flag indicating whether we were connected last time through the mainloop. Used to send a "normal"-sev...
OSVR Hacker Dev Kit HMD The official name of the Razer/Sensics HMD (until they change it again…) is ...