6#include "vrpn_Button.h"  
    7#include "vrpn_Configure.h"  
    8#include "vrpn_HumanInterface.h"  
    9#include "vrpn_Shared.h"  
   10#include "vrpn_Types.h"  
   24#if defined(VRPN_USE_HID) 
   30 virtual ~vrpn_DreamCheeky();
 
   38 virtual void decodePacket(
size_t bytes, vrpn_uint8 *buffer) = 0;  
 
   39 struct timeval _timestamp;
 
 
   46class VRPN_API vrpn_DreamCheeky_Drum_Kit: 
protected vrpn_DreamCheeky, 
public vrpn_Button_Filter {
 
   52  vrpn_DreamCheeky_Drum_Kit(
const char *name, 
vrpn_Connection *c = 0, 
bool debounce = 
true);
 
   53 virtual ~vrpn_DreamCheeky_Drum_Kit() {};
 
   62 void report_changes (
void);
 
   66 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
 
void on_data_received(size_t bytes, vrpn_uint8 *buffer)
Derived class reimplements this callback. It is called whenever a read returns some data.
 
virtual void mainloop()=0
 
int register_types(void)
定义 vrpn_DreamCheeky.h:43
 
定义 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