11#ifndef VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
12#define VRPN_TRACKER_OSVR_HACKER_DEV_KIT_H_
25#if defined(VRPN_USE_HID)
vrpn_Analog(const char *name, vrpn_Connection *c=NULL)
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
vrpn_HidInterface(vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0, hid_device *device=NULL)
Constructor If we already have a HID device from some other source, it can be passed and we'll take o...
virtual void on_data_received(size_t bytes, vrpn_uint8 *buffer)=0
Derived class reimplements this callback.
bool _wasConnected
Flag indicating whether we were connected last time through the mainloop. Used to send a "normal"-sev...
vrpn_Tracker_OSVRHackerDevKit(const char *name, hid_device *dev=NULL, vrpn_Connection *c=NULL)
Constructor.
vrpn_uint8 _reportVersion
vrpn_uint16 _messageCount
Used to forcibly send the analog update every so often.
@ STATUS_LANDSCAPE_VIDEO_INPUT
@ STATUS_PORTRAIT_VIDEO_INPUT
struct timeval _timestamp
Timestamp updated during mainloop()
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
struct hid_device_ hid_device