40 virtual void set_toggle(vrpn_int32 which_button, vrpn_int32 current_state);
57 virtual vrpn_int32
encode_to(
char *buf, vrpn_int32 button,
70 virtual void set_toggle(vrpn_int32 which_button, vrpn_int32 current_state);
90#ifndef VRPN_CLIENT_ONLY
124 int numbuttons = 1, vrpn_float64 rate = 1.0);
140 int portno,
unsigned porthex = 0);
149 int openGiveIO(
void);
169 virtual void read(
void);
177 const char *port =
"/dev/ttyS1/",
long baud = 38400);
201 const char *port =
"/dev/ttyS1/",
long baud = 38400);
223#define VRPN_BUTTON_OFF (0)
224#define VRPN_BUTTON_ON (1)
226typedef struct _vrpn_BUTTONCB {
239typedef struct _vrpn_BUTTONSTATECB {
vrpn_MESSAGEHANDLER handler
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual int register_types(void)=0
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
vrpn_BaseClass(const char *name, vrpn_Connection *c=NULL)
Names the device and assigns or opens connection, calls registration methods.
Generic connection class not specific to the transport mechanism.
This structure is what is passed to a vrpn_Connection message callback.
All types of client/server/peer objects in VRPN should be derived from the vrpn_BaseClass type descri...
class VRPN_API vrpn_Button_Server