5#include "vrpn_Analog.h"
7#include "vrpn_Configure.h"
8#include "vrpn_Connection.h"
9#include "vrpn_HumanInterface.h"
10#include "vrpn_Shared.h"
11#include "vrpn_Types.h"
13#if defined(VRPN_USE_HID)
35 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;
36 struct timeval _timestamp;
53 void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
55 void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
57 void decodePacket(
size_t bytes, vrpn_uint8 *buffer);
63class VRPN_API vrpn_Vality_ShuttleXpress;
64class VRPN_API vrpn_Vality_ShuttlePROv2;
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)=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_Vality.h:40
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41