5#include "vrpn_Analog.h"
7#include "vrpn_Button.h"
8#include "vrpn_Configure.h"
9#include "vrpn_Connection.h"
11#include "vrpn_HumanInterface.h"
12#include "vrpn_Shared.h"
13#include "vrpn_Types.h"
15#if defined(VRPN_USE_HID)
41 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;
42 struct timeval _timestamp;
58 void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
60 void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
62 void decodePacket(
size_t bytes, vrpn_uint8 *buffer);
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
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_Griffin.h:46
定义 vrpn_HumanInterface.h:56
定义 vrpn_HumanInterface.h:70
vrpn_uint16 product() const
vrpn_uint16 vendor() const
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41