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)
28 virtual ~vrpn_Contour(
void);
40 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;
41 struct timeval _timestamp;
55class vrpn_Contour_ShuttleXpress:
protected vrpn_Contour,
public vrpn_Analog,
public vrpn_Button_Filter,
public vrpn_Dial {
58 virtual ~vrpn_Contour_ShuttleXpress(
void) {};
64 void report_changes (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
66 void report (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
68 void decodePacket(
size_t bytes, vrpn_uint8 *buffer);
71class vrpn_Contour_ShuttlePROv2 :
protected vrpn_Contour,
public vrpn_Analog,
public vrpn_Button_Filter,
public vrpn_Dial {
74 virtual ~vrpn_Contour_ShuttlePROv2(
void) {};
80 void report_changes(vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
82 void report(vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
84 void decodePacket(
size_t bytes, vrpn_uint8 *buffer);
vrpn_BaseClass(const char *name, vrpn_Connection *c=NULL)
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
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_Contour.h:45
定义 vrpn_HumanInterface.h:56
vrpn_uint16 product() const
vrpn_HidInterface(vrpn_HidAcceptor *acceptor, vrpn_uint16 vendor=0, vrpn_uint16 product=0, hid_device *device=NULL)
vrpn_uint16 vendor() const
This structure is what is passed to a vrpn_Connection message callback.
定义 vrpn_Connection.h:41