00001 #ifndef _device_1d_vrpn_H_ 00002 #define _device_1d_vrpn_H_ 00003 00004 #include "dev/dev1d.H" 00005 #include "dev/polled.H" 00006 #include "vrpn/vrpn_Analog.h" 00007 00008 // 00009 // A VRPN 2d device 00010 // 00011 class DEVice_1d_VRPN : public DEVice, public DEVpolled { 00012 protected: 00013 vrpn_Analog_Remote *_vrpndev; 00014 00015 static void vrpn_change_handler(void *ice, const vrpn_ANALOGCB info); 00016 00017 //DEVice_1d _pointer; 00018 DEVice_1d* _channels[32]; 00019 00020 00021 /* ------------- DEVpolled methods --------------- */ 00022 void do_poll(); 00023 00024 public: 00025 DEVice_1d_VRPN(Cstr_ptr &name); 00026 virtual ~DEVice_1d_VRPN(); 00027 }; 00028 00029 #endif