3#include "vrpn_Analog.h"
4#include "vrpn_Button.h"
5#include "vrpn_HumanInterface.h"
8#if defined(VRPN_USE_HID)
33 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;
34 struct timeval _timestamp;
74 void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
76 void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
78 void decodePacket(
size_t bytes, vrpn_uint8 *buffer);
110 void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
112 void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
114 void decodePacket(
size_t bytes, vrpn_uint8 *buffer);
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
定义 vrpn_HumanInterface.h:56
定义 vrpn_HumanInterface.h:70
vrpn_uint16 product() const
vrpn_uint16 vendor() const
virtual void mainloop(void)
virtual void mainloop(void)
virtual void mainloop(void)=0
void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback. It is called whenever a read returns some data.
int register_types(void)
定义 vrpn_Retrolink.h:38
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41