#include <vrpn_Button.h>
Class diagram for vrpn_Button_Server:

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). | |
| 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).
1.0.0 written by Dimitri van Heesch,
© 1997-1999