11#ifndef VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
12#define VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
17#include "vrpn_Tracker.h"
18#include "vrpn_Analog.h"
19#include "vrpn_Configure.h"
20#include "vrpn_Connection.h"
21#include "vrpn_HumanInterface.h"
22#include "vrpn_Shared.h"
23#include "vrpn_Types.h"
25#if defined(VRPN_USE_HID)
116 STATUS_NO_VIDEO_INPUT = 1,
117 STATUS_PORTRAIT_VIDEO_INPUT = 2,
118 STATUS_LANDSCAPE_VIDEO_INPUT = 3
127 struct timeval _timestamp;
138 vrpn_uint8 _reportVersion;
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_HumanInterface.h:70
OSVR Hacker Dev Kit HMD The official name of the Razer/Sensics HMD (until they change it again....
定义 vrpn_Tracker_OSVRHackerDevKit.h:87
void on_data_received(std::size_t bytes, vrpn_uint8 *buffer)
Extracts the sensor values from each report.
vrpn_Tracker_OSVRHackerDevKit(const char *name, hid_device *dev=NULL, vrpn_Connection *c=NULL)
Constructor.
vrpn_uint16 _messageCount
Used to forcibly send the analog update every so often
定义 vrpn_Tracker_OSVRHackerDevKit.h:136
virtual void mainloop()
Standard VRPN mainloop method.
bool _wasConnected
定义 vrpn_Tracker_OSVRHackerDevKit.h:133
virtual ~vrpn_Tracker_OSVRHackerDevKit()
Destructor.
vrpn_Tracker_OSVRHackerDevKit(const char *name, vrpn_Connection *c)