4#include "vrpn_Analog.h"
5#include "vrpn_Button.h"
6#include "vrpn_Configure.h"
7#include "vrpn_Connection.h"
8#include "vrpn_Shared.h"
16 const char * port,
int baud,
bool altreset =
false);
23 virtual int reset(
void);
31 unsigned _expected_chars;
32 unsigned char _buffer[512];
37 struct timeval timestamp;
39 virtual void clear_values(
void);
47 (vrpn_uint32 class_of_service
48 = vrpn_CONNECTION_LOW_LATENCY);
51 (vrpn_uint32 class_of_service
52 = vrpn_CONNECTION_LOW_LATENCY);
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562
virtual int get_report(void)
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