4#include "vrpn_Analog.h"
5#include "vrpn_Configure.h"
6#include "vrpn_Connection.h"
7#include "vrpn_Shared.h"
31 unsigned _expected_chars;
32 unsigned char _buffer[512];
35 struct timeval timestamp;
37 virtual int reset(
void);
38 virtual void get_report(
void);
40 virtual void clear_values(
void);
44 (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
47 (vrpn_uint32 class_of_service = vrpn_CONNECTION_LOW_LATENCY);
50#include "vrpn_Button.h"
63 double threshold[16]);
69 static void VRPN_CALLBACK handle_analog_update (
void * userdata,
const vrpn_ANALOGCB info);
71 double m_threshold[16];
virtual void mainloop()
Called once through each main loop iteration to handle updates.
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report whether or not changed
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY)
send report iff changed
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562