15#include "vrpn_HumanInterface.h"
16#include "vrpn_Analog.h"
18#if defined(VRPN_USE_HID)
41 const char *name,
vrpn_Connection *c = NULL,
double keepAliveSeconds = 9.0);
48 virtual bool parse_message(std::size_t bytes, vrpn_uint8 *buffer);
63 struct timeval d_lastKeepAlive;
66 virtual void writeKeepAlive(
67 vrpn_uint16 interval = 10000
68 , vrpn_uint16 commandId = 0
83 double keepAliveSeconds = 9.0);
88 virtual void writeKeepAlive(
89 vrpn_uint16 interval = 10000
90 , vrpn_uint16 commandId = 0
106 double keepAliveSeconds = 9.0);
114 bool parse_message(std::size_t bytes, vrpn_uint8 *buffer);
123 virtual void writeKeepAlive(
124 vrpn_uint16 interval = 10000
125 , vrpn_uint16 commandId = 0
140 double keepAliveSeconds = 9.0)
155 double keepAliveSeconds = 9.0)
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_HumanInterface.h:56
vrpn_HidInterface(vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0, hid_device *device=NULL)
vrpn_Oculus_DK1(const char *name, vrpn_Connection *c=NULL, double keepAliveSeconds=9.0)
Constructor
vrpn_Oculus_DK2_LEDs(const char *name, vrpn_Connection *c=NULL, double keepAliveSeconds=9.0)
Constructor
定义 vrpn_Oculus.h:154
vrpn_Oculus_DK2_inertial(const char *name, vrpn_Connection *c=NULL, double keepAliveSeconds=9.0)
Constructor
定义 vrpn_Oculus.h:139
bool d_enableLEDs
Whether to trigger the LEDs
定义 vrpn_Oculus.h:120
void parse_message_type_11(std::size_t bytes, vrpn_uint8 *buffer)
Parse and send reports for type-11 message
vrpn_Oculus_DK2(bool enableLEDs, const char *name, vrpn_Connection *c=NULL, double keepAliveSeconds=9.0)
Protected constructor so you can't instantiate this base class.
virtual ~vrpn_Oculus()
Destructor.
void on_data_received(std::size_t bytes, vrpn_uint8 *buffer)
double d_keepAliveSeconds
定义 vrpn_Oculus.h:62
void parse_message_type_1(std::size_t bytes, vrpn_uint8 *buffer)
Parse and send reports for type-1 message
struct timeval d_timestamp
Timestamp updated during mainloop()
定义 vrpn_Oculus.h:58
vrpn_Oculus(vrpn_uint16 product_id, vrpn_uint8 num_channels, const char *name, vrpn_Connection *c=NULL, double keepAliveSeconds=9.0)
Protected constructor so you can't instantiate this base class.