Main Page   Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

vrpn_Button_Server Class Reference

#include <vrpn_Button.h>

Class diagram for vrpn_Button_Server:

vrpn_Button_Filter vrpn_Button vrpn_BaseClass vrpn_BaseClassUnique

List of all members.


Public Members

 vrpn_Button_Server (const char *name, vrpn_Connection *c, int numbuttons = 1)
int number_of_buttons (void)
Tells how many buttons there are (may be clipped to MAX_BUTTONS).

virtual void mainloop ()
Called once each time through the server program's mainloop to handle various functions (like setting toggles, reporting changes, etc).

int set_button (int button, int new_value)
Allows the server program to set current button states (to 0 or 1).


Detailed Description


Member Function Documentation

vrpn_Button_Server::vrpn_Button_Server (const char * name, vrpn_Connection * c, int numbuttons = 1)

int vrpn_Button_Server::number_of_buttons (void)

Tells how many buttons there are (may be clipped to MAX_BUTTONS).

virtual void vrpn_Button_Server::mainloop (void) [virtual]

Called once each time through the server program's mainloop to handle various functions (like setting toggles, reporting changes, etc).

Reimplemented from vrpn_BaseClass.

int vrpn_Button_Server::set_button (int button, int new_value)

Allows the server program to set current button states (to 0 or 1).


The documentation for this class was generated from the following files:
Generated at Fri Sep 13 15:04:03 2002 for vrpn by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999