00001 #ifndef _device_2d_vrpn_H_ 00002 #define _device_2d_vrpn_H_ 00003 00004 #include "dev/dev2d.H" 00005 #include "dev/polled.H" 00006 #include "vrpn/vrpn_Analog.h" 00007 00008 // 00009 // A VRPN 2d device 00010 // 00011 class DEVice_2d_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_2d _pointer; 00018 00019 /* ------------- DEVpolled methods --------------- */ 00020 void do_poll(); 00021 00022 public: 00023 DEVice_2d_VRPN(Cstr_ptr &name); 00024 virtual ~DEVice_2d_VRPN(); 00025 }; 00026 00027 #endif