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 
vrpn_Tracker.h
vrpn_Tracker
Definition: vrpn_Tracker.h:49
vrpn_Types.h
vrpn_HidInterface
Definition: vrpn_HumanInterface.h:68
vrpn_Shared.h
vrpn_Tracker_OSVRHackerDevKit::_wasConnected
bool _wasConnected
Flag indicating whether we were connected last time through the mainloop. Used to send a "normal"-sev...
Definition: vrpn_Tracker_OSVRHackerDevKit.h:90
vrpn_HumanInterface.h
vrpn_BaseClass::mainloop
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
vrpn_Connection
Generic connection class not specific to the transport mechanism.
Definition: vrpn_Connection.h:510
vrpn_Tracker_OSVRHackerDevKit
OSVR Hacker Dev Kit HMD The official name of the Razer/Sensics HMD (until they change it again…) is “...
Definition: vrpn_Tracker_OSVRHackerDevKit.h:58
vrpn_Connection.h
vrpn_HidInterface::on_data_received
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
vrpn_Configure.h
VRPN_API
#define VRPN_API
Definition: vrpn_Configure.h:646