1#ifndef VRPN_DEV_INPUT_H
2#define VRPN_DEV_INPUT_H
32#include "vrpn_Analog.h"
33#include "vrpn_Button.h"
34#include "vrpn_Configure.h"
35#include "vrpn_Connection.h"
36#include "vrpn_Shared.h"
37#include "vrpn_Types.h"
39#ifdef VRPN_USE_DEV_INPUT
41class VRPN_API vrpn_DevInput :
45 enum DEVICE_TYPE { DEVICE_KEYBOARD, DEVICE_MOUSE_RELATIVE, DEVICE_MOUSE_ABSOLUTE } d_type;
48 vrpn_DevInput(
const char* name,
vrpn_Connection* cxn,
const char *device,
const char *type,
int mouse_length );
49 virtual ~vrpn_DevInput();
56 virtual int get_report();
60 = vrpn_CONNECTION_LOW_LATENCY );
63 virtual void report( vrpn_uint32 class_of_service
64 = vrpn_CONNECTION_LOW_LATENCY );
67 struct timeval timestamp;
71 vrpn_DevInput(
const vrpn_DevInput&);
72 const vrpn_DevInput& operator=(
const vrpn_DevInput&);
76 vrpn_float64 d_absolute_min;
77 vrpn_float64 d_absolute_range;
virtual void report(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
virtual void report_changes(vrpn_uint32 class_of_service=vrpn_CONNECTION_LOW_LATENCY, const struct timeval time=vrpn_ANALOG_NOW)
virtual void mainloop()=0
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562