This is the base class for both the client and server for a button device (a device with one or more boolean switches). More...
#include <vrpn_Button.h>
Public Member Functions | |
vrpn_Button (const char *name, vrpn_Connection *c=NULL) | |
virtual | ~vrpn_Button (void) |
void | print (void) |
virtual void | set_momentary (vrpn_int32 which_button) |
virtual void | set_toggle (vrpn_int32 which_button, vrpn_int32 current_state) |
virtual void | set_all_momentary (void) |
virtual void | set_all_toggle (vrpn_int32 default_state) |
![]() | |
vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL) | |
Names the device and assigns or opens connection, calls registration methods. | |
virtual | ~vrpn_BaseClass () |
virtual void | mainloop ()=0 |
Called once through each main loop iteration to handle updates. Remote object mainloop() should call client_mainloop() and then call d_connection->mainloop(). Server object mainloop() should service the device and then call server_mainloop(), but should not normally call d_connection->mainloop(). | |
![]() | |
vrpn_BaseClassUnique () | |
virtual | ~vrpn_BaseClassUnique () |
Unregister all of the message handlers that were to be autodeleted. | |
vrpn_Connection * | connectionPtr () |
Returns a pointer to the connection this object is using. | |
Protected Member Functions | |
virtual int | register_types (void) |
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail. | |
virtual void | report_changes (void) |
virtual void | report_states (void) |
virtual vrpn_int32 | encode_to (char *buf, vrpn_int32 button, vrpn_int32 state) |
Encode a message describing the new state of a button. | |
virtual vrpn_int32 | encode_states_to (char *buf) |
Encode a message describing the state of all buttons. | |
![]() | |
virtual int | init (void) |
Initialize things that the constructor can't. Returns 0 on success, -1 on failure. | |
virtual int | register_senders (void) |
Register the sender for this device (by default, the name of the device). Return 0 on success, -1 on fail. | |
![]() | |
int | register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER) |
Registers a handler with the connection, and remembers to delete at destruction. | |
int | send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0) |
Sends a NULL-terminated text message from the device d_sender_id. | |
SendTextMessageBoundCall | send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL) |
Returns an object you can stream into to send a text message from the device like send_text_message(vrpn_TEXT_WARNING) << "Value of i is: " << i; This use requires including vrpn_SendTextMessageStreamProxy.h. | |
void | server_mainloop (void) |
Handles functions that all servers should provide in their mainloop() (ping/pong, for example) Should be called by all servers in their mainloop() | |
void | client_mainloop (void) |
Handles functions that all clients should provide in their mainloop() (warning of no server, for example) Should be called by all clients in their mainloop() | |
Protected Attributes | |
unsigned char | buttons [vrpn_BUTTON_MAX_BUTTONS] |
unsigned char | lastbuttons [vrpn_BUTTON_MAX_BUTTONS] |
vrpn_int32 | minrate [vrpn_BUTTON_MAX_BUTTONS] |
vrpn_int32 | num_buttons |
struct timeval | timestamp |
vrpn_int32 | change_message_id |
vrpn_int32 | states_message_id |
vrpn_int32 | admin_message_id |
![]() | |
vrpn_Connection * | d_connection |
Connection that this object talks to. | |
char * | d_servicename |
Name of this device, not including the connection part. | |
vrpn_int32 | d_sender_id |
Sender ID registered with the connection. | |
vrpn_int32 | d_text_message_id |
ID for text messages. | |
vrpn_int32 | d_ping_message_id |
Ask the server if they are there. | |
vrpn_int32 | d_pong_message_id |
Server telling that it is there. | |
Additional Inherited Members | |
![]() | |
bool | shutup |
![]() | |
static int | encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg) |
Encodes the body of the text message into a buffer, preparing for sending. | |
static int | decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf) |
Decodes the body of the text message from a buffer from the connection. | |
This is the base class for both the client and server for a button device (a device with one or more boolean switches).
Any server should actually derive from the vrpn_Button_Filter class, described next, which enables toggling any of the buttons.
Definition at line 31 of file vrpn_Button.h.
vrpn_Button::vrpn_Button | ( | const char * | name, |
vrpn_Connection * | c = NULL ) |
Definition at line 91 of file vrpn_Button.C.
References buttons, vrpn_BaseClass::init(), lastbuttons, num_buttons, timestamp, vrpn_BaseClass::vrpn_BaseClass(), vrpn_BUTTON_MAX_BUTTONS, and vrpn_Connection.
Referenced by vrpn_Button_Filter::vrpn_Button_Filter(), vrpn_Button_Remote::vrpn_Button_Remote(), and vrpn_Tracker_SpacePoint::vrpn_Tracker_SpacePoint().
|
virtual |
Definition at line 123 of file vrpn_Button.C.
|
protectedvirtual |
Encode a message describing the state of all buttons.
Assumes that there is enough room in the buffer to hold the bytes from the message. Returns the number of bytes sent.
Reimplemented in vrpn_Button_Filter.
Definition at line 318 of file vrpn_Button.C.
References buttons, num_buttons, vrpn_buffer(), and vrpn_BUTTON_MAX_BUTTONS.
Referenced by report_states().
|
protectedvirtual |
Encode a message describing the new state of a button.
Assumes that there is enough room in the buffer to hold the bytes from the message. Returns the number of bytes sent.
Definition at line 299 of file vrpn_Button.C.
References vrpn_buffer().
void vrpn_Button::print | ( | void | ) |
Definition at line 277 of file vrpn_Button.C.
References buttons, lastbuttons, and num_buttons.
|
protectedvirtual |
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
Implements vrpn_BaseClass.
Definition at line 104 of file vrpn_Button.C.
References admin_message_id, change_message_id, vrpn_BaseClassUnique::d_connection, and states_message_id.
|
protectedvirtual |
Reimplemented in vrpn_Button_Filter, vrpn_DreamCheeky_Drum_Kit, vrpn_Xkeys_Desktop, vrpn_Xkeys_Pro, and vrpn_Xkeys_XK3.
Definition at line 423 of file vrpn_Button.C.
References buttons, vrpn_BaseClassUnique::d_connection, lastbuttons, num_buttons, and PACK_MESSAGE.
Referenced by vrpn_Tracker_3DMouse::get_report(), vrpn_ADBox::mainloop(), vrpn_Event_Mouse::mainloop(), vrpn_Tracker_DTrack::mainloop(), vrpn_VPJoystick::mainloop(), vrpn_Tracker_SpacePoint::on_data_received(), vrpn_3DConnexion::report(), vrpn_3DMicroscribe::report(), vrpn_BiosciencesTools::report(), vrpn_CerealBox::report(), vrpn_CHProducts_Fighterstick_USB::report(), vrpn_Contour_ShuttlePROv2::report(), vrpn_Contour_ShuttleXpress::report(), vrpn_DreamCheeky_Drum_Kit::report(), vrpn_Futaba_InterLink_Elite::report(), vrpn_GlobalHapticsOrb::report(), vrpn_Griffin_PowerMate::report(), vrpn_IDEA::report(), vrpn_ImmersionBox::report(), vrpn_inertiamouse::report(), vrpn_Joystick::report(), vrpn_Logitech_Extreme_3D_Pro::report(), vrpn_Magellan::report(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::report(), vrpn_Microsoft_Controller_Raw_Xbox_S::report(), vrpn_Microsoft_SideWinder::report(), vrpn_Microsoft_SideWinder_Precision_2::report(), vrpn_nVidia_shield_stealth_USB::report(), vrpn_nVidia_shield_USB::report(), vrpn_Retrolink_GameCube::report(), vrpn_Retrolink_Genesis::report(), vrpn_Saitek_ST290_Pro::report(), vrpn_Spaceball::report(), vrpn_Streaming_Arduino::report(), vrpn_Tng3::report(), vrpn_Xkeys_Desktop::report(), vrpn_Xkeys_Jog_And_Shuttle12::report(), vrpn_Xkeys_Jog_And_Shuttle68::report(), vrpn_Xkeys_Jog_And_Shuttle::report(), vrpn_Xkeys_Joystick12::report(), vrpn_Xkeys_Joystick::report(), vrpn_Xkeys_Pro::report(), vrpn_Xkeys_XK3::report(), vrpn_3DConnexion::report_changes(), vrpn_3DMicroscribe::report_changes(), vrpn_BiosciencesTools::report_changes(), vrpn_CerealBox::report_changes(), vrpn_CHProducts_Fighterstick_USB::report_changes(), vrpn_Contour_ShuttlePROv2::report_changes(), vrpn_Contour_ShuttleXpress::report_changes(), vrpn_DreamCheeky_Drum_Kit::report_changes(), vrpn_Futaba_InterLink_Elite::report_changes(), vrpn_GlobalHapticsOrb::report_changes(), vrpn_Griffin_PowerMate::report_changes(), vrpn_IDEA::report_changes(), vrpn_ImmersionBox::report_changes(), vrpn_inertiamouse::report_changes(), vrpn_Logitech_Extreme_3D_Pro::report_changes(), vrpn_Magellan::report_changes(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::report_changes(), vrpn_Microsoft_Controller_Raw_Xbox_S::report_changes(), vrpn_Microsoft_SideWinder::report_changes(), vrpn_Microsoft_SideWinder_Precision_2::report_changes(), vrpn_nVidia_shield_stealth_USB::report_changes(), vrpn_nVidia_shield_USB::report_changes(), vrpn_Retrolink_GameCube::report_changes(), vrpn_Retrolink_Genesis::report_changes(), vrpn_Saitek_ST290_Pro::report_changes(), vrpn_Spaceball::report_changes(), vrpn_Streaming_Arduino::report_changes(), vrpn_Tng3::report_changes(), vrpn_Xkeys_Desktop::report_changes(), vrpn_Xkeys_Jog_And_Shuttle12::report_changes(), vrpn_Xkeys_Jog_And_Shuttle68::report_changes(), vrpn_Xkeys_Jog_And_Shuttle::report_changes(), vrpn_Xkeys_Joystick12::report_changes(), vrpn_Xkeys_Joystick::report_changes(), vrpn_Xkeys_Pro::report_changes(), vrpn_Xkeys_XK3::report_changes(), vrpn_YEI_3Space::report_changes(), and vrpn_Wanda::report_new_button_info().
|
protectedvirtual |
Definition at line 438 of file vrpn_Button.C.
References vrpn_BaseClassUnique::d_connection, vrpn_BaseClassUnique::d_sender_id, encode_states_to(), states_message_id, timestamp, vrpn_BUTTON_MAX_BUTTONS, and vrpn_CONNECTION_RELIABLE.
Referenced by vrpn_Button_Filter::handle_ping_message().
|
virtual |
Reimplemented in vrpn_Button_Filter.
Definition at line 255 of file vrpn_Button.C.
References PACK_ADMIN_MESSAGE, vrpn_ALL_ID, and vrpn_BUTTON_MOMENTARY.
|
virtual |
Reimplemented in vrpn_Button_Filter.
Definition at line 260 of file vrpn_Button.C.
References PACK_ADMIN_MESSAGE, and vrpn_ALL_ID.
|
virtual |
Reimplemented in vrpn_Button_Filter.
Definition at line 192 of file vrpn_Button.C.
References num_buttons, PACK_ADMIN_MESSAGE, vrpn_BaseClassUnique::send_text_message(), timestamp, vrpn_BUTTON_MOMENTARY, and vrpn_TEXT_ERROR.
|
virtual |
Reimplemented in vrpn_Button_Filter.
Definition at line 227 of file vrpn_Button.C.
References num_buttons, PACK_ADMIN_MESSAGE, vrpn_BaseClassUnique::send_text_message(), timestamp, vrpn_BUTTON_TOGGLE_OFF, vrpn_BUTTON_TOGGLE_ON, and vrpn_TEXT_ERROR.
|
protected |
Definition at line 52 of file vrpn_Button.h.
Referenced by register_types(), and vrpn_Button_Filter::vrpn_Button_Filter().
|
protected |
Definition at line 45 of file vrpn_Button.h.
Referenced by vrpn_raw_SGIBox::check_press_bank(), vrpn_raw_SGIBox::check_release_bank(), vrpn_CerealBox::clear_values(), vrpn_GlobalHapticsOrb::clear_values(), vrpn_ImmersionBox::clear_values(), vrpn_inertiamouse::clear_values(), vrpn_Magellan::clear_values(), vrpn_Spaceball::clear_values(), vrpn_Tng3::clear_values(), vrpn_Tracker_3DMouse::clear_values(), vrpn_IDEA::convert_report_to_buttons(), vrpn_3DConnexion::decodePacket(), vrpn_3DConnexion_SpaceMouseProWireless::decodePacket(), vrpn_CHProducts_Fighterstick_USB::decodePacket(), vrpn_Contour_ShuttlePROv2::decodePacket(), vrpn_Contour_ShuttleXpress::decodePacket(), vrpn_DreamCheeky_Drum_Kit::decodePacket(), vrpn_Futaba_InterLink_Elite::decodePacket(), vrpn_Griffin_PowerMate::decodePacket(), vrpn_Logitech_Extreme_3D_Pro::decodePacket(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::decodePacket(), vrpn_Microsoft_Controller_Raw_Xbox_S::decodePacket(), vrpn_Microsoft_SideWinder::decodePacket(), vrpn_Microsoft_SideWinder_Precision_2::decodePacket(), vrpn_nVidia_shield_stealth_USB::decodePacket(), vrpn_nVidia_shield_USB::decodePacket(), vrpn_Retrolink_GameCube::decodePacket(), vrpn_Retrolink_Genesis::decodePacket(), vrpn_Saitek_ST290_Pro::decodePacket(), vrpn_Xkeys_Desktop::decodePacket(), vrpn_Xkeys_Jog_And_Shuttle12::decodePacket(), vrpn_Xkeys_Jog_And_Shuttle68::decodePacket(), vrpn_Xkeys_Jog_And_Shuttle::decodePacket(), vrpn_Xkeys_Joystick12::decodePacket(), vrpn_Xkeys_Joystick::decodePacket(), vrpn_Xkeys_Pro::decodePacket(), vrpn_Xkeys_XK3::decodePacket(), encode_states_to(), vrpn_3DMicroscribe::get_report(), vrpn_CerealBox::get_report(), vrpn_GlobalHapticsOrb::get_report(), vrpn_ImmersionBox::get_report(), vrpn_inertiamouse::get_report(), vrpn_Keyboard::get_report(), vrpn_Magellan::get_report(), vrpn_Mouse::get_report(), vrpn_Spaceball::get_report(), vrpn_Tng3::get_report(), vrpn_Tracker_3DMouse::get_report(), vrpn_Button_5DT_Server::handle_analog_update(), vrpn_YEI_3Space::handle_report(), vrpn_3DConnexion::mainloop(), vrpn_ADBox::mainloop(), vrpn_Button_Example_Server::mainloop(), vrpn_Button_NI_DIO24::mainloop(), vrpn_VPJoystick::mainloop(), vrpn_Wanda::mainloop(), vrpn_Tracker_SpacePoint::on_data_received(), vrpn_Joystick::parse(), print(), vrpn_Button_PinchGlove::read(), vrpn_Button_Python::read(), vrpn_Button_SerialMouse::read(), vrpn_Tracker_PhaseSpace::report_button(), report_changes(), vrpn_Button_Filter::report_changes(), vrpn_Wanda::report_new_button_info(), vrpn_IDEA::reset(), vrpn_raw_SGIBox::reset(), vrpn_IDEA::send_move_request(), vrpn_Button_Server::set_button(), vrpn_BiosciencesTools::set_specified_channel(), vrpn_3DConnexion::vrpn_3DConnexion(), vrpn_BiosciencesTools::vrpn_BiosciencesTools(), vrpn_Button(), vrpn_Button_Parallel::vrpn_Button_Parallel(), vrpn_Button_PinchGlove::vrpn_Button_PinchGlove(), vrpn_Button_Remote::vrpn_Button_Remote(), vrpn_Button_SerialMouse::vrpn_Button_SerialMouse(), vrpn_CHProducts_Fighterstick_USB::vrpn_CHProducts_Fighterstick_USB(), vrpn_Contour_ShuttlePROv2::vrpn_Contour_ShuttlePROv2(), vrpn_Contour_ShuttleXpress::vrpn_Contour_ShuttleXpress(), vrpn_DreamCheeky_Drum_Kit::vrpn_DreamCheeky_Drum_Kit(), vrpn_Futaba_InterLink_Elite::vrpn_Futaba_InterLink_Elite(), vrpn_Griffin_PowerMate::vrpn_Griffin_PowerMate(), vrpn_IDEA::vrpn_IDEA(), vrpn_Keyboard::vrpn_Keyboard(), vrpn_Logitech_Extreme_3D_Pro::vrpn_Logitech_Extreme_3D_Pro(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::vrpn_Microsoft_Controller_Raw_Xbox_360_base(), vrpn_Microsoft_Controller_Raw_Xbox_S::vrpn_Microsoft_Controller_Raw_Xbox_S(), vrpn_Microsoft_SideWinder::vrpn_Microsoft_SideWinder(), vrpn_Microsoft_SideWinder_Precision_2::vrpn_Microsoft_SideWinder_Precision_2(), vrpn_Mouse::vrpn_Mouse(), vrpn_nVidia_shield_stealth_USB::vrpn_nVidia_shield_stealth_USB(), vrpn_nVidia_shield_USB::vrpn_nVidia_shield_USB(), vrpn_Retrolink_GameCube::vrpn_Retrolink_GameCube(), vrpn_Retrolink_Genesis::vrpn_Retrolink_Genesis(), vrpn_Saitek_ST290_Pro::vrpn_Saitek_ST290_Pro(), vrpn_VPJoystick::vrpn_VPJoystick(), vrpn_Wanda::vrpn_Wanda(), vrpn_WiiMote::vrpn_WiiMote(), vrpn_Xkeys_Desktop::vrpn_Xkeys_Desktop(), vrpn_Xkeys_Jog_And_Shuttle::vrpn_Xkeys_Jog_And_Shuttle(), vrpn_Xkeys_Jog_And_Shuttle12::vrpn_Xkeys_Jog_And_Shuttle12(), vrpn_Xkeys_Jog_And_Shuttle68::vrpn_Xkeys_Jog_And_Shuttle68(), vrpn_Xkeys_Joystick::vrpn_Xkeys_Joystick(), vrpn_Xkeys_Joystick12::vrpn_Xkeys_Joystick12(), vrpn_Xkeys_Pro::vrpn_Xkeys_Pro(), vrpn_Xkeys_XK3::vrpn_Xkeys_XK3(), and vrpn_YEI_3Space::vrpn_YEI_3Space().
|
protected |
Definition at line 50 of file vrpn_Button.h.
Referenced by register_types(), and vrpn_Button_Remote::vrpn_Button_Remote().
|
protected |
Definition at line 46 of file vrpn_Button.h.
Referenced by vrpn_CerealBox::clear_values(), vrpn_GlobalHapticsOrb::clear_values(), vrpn_ImmersionBox::clear_values(), vrpn_inertiamouse::clear_values(), vrpn_Magellan::clear_values(), vrpn_Spaceball::clear_values(), vrpn_Tng3::clear_values(), vrpn_Tracker_3DMouse::clear_values(), vrpn_IDEA::convert_report_to_buttons(), vrpn_ImmersionBox::get_report(), vrpn_Tng3::get_report(), vrpn_ADBox::mainloop(), vrpn_Button_Example_Server::mainloop(), print(), report_changes(), vrpn_Button_Filter::report_changes(), vrpn_raw_SGIBox::reset(), vrpn_3DConnexion::vrpn_3DConnexion(), vrpn_Button(), vrpn_Button_Parallel::vrpn_Button_Parallel(), vrpn_Button_PinchGlove::vrpn_Button_PinchGlove(), vrpn_Button_Remote::vrpn_Button_Remote(), vrpn_Button_SerialMouse::vrpn_Button_SerialMouse(), vrpn_CHProducts_Fighterstick_USB::vrpn_CHProducts_Fighterstick_USB(), vrpn_Contour_ShuttlePROv2::vrpn_Contour_ShuttlePROv2(), vrpn_Contour_ShuttleXpress::vrpn_Contour_ShuttleXpress(), vrpn_DreamCheeky_Drum_Kit::vrpn_DreamCheeky_Drum_Kit(), vrpn_Futaba_InterLink_Elite::vrpn_Futaba_InterLink_Elite(), vrpn_Griffin_PowerMate::vrpn_Griffin_PowerMate(), vrpn_IDEA::vrpn_IDEA(), vrpn_Keyboard::vrpn_Keyboard(), vrpn_Logitech_Extreme_3D_Pro::vrpn_Logitech_Extreme_3D_Pro(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::vrpn_Microsoft_Controller_Raw_Xbox_360_base(), vrpn_Microsoft_Controller_Raw_Xbox_S::vrpn_Microsoft_Controller_Raw_Xbox_S(), vrpn_Microsoft_SideWinder::vrpn_Microsoft_SideWinder(), vrpn_Microsoft_SideWinder_Precision_2::vrpn_Microsoft_SideWinder_Precision_2(), vrpn_Mouse::vrpn_Mouse(), vrpn_nVidia_shield_stealth_USB::vrpn_nVidia_shield_stealth_USB(), vrpn_nVidia_shield_USB::vrpn_nVidia_shield_USB(), vrpn_Retrolink_GameCube::vrpn_Retrolink_GameCube(), vrpn_Retrolink_Genesis::vrpn_Retrolink_Genesis(), vrpn_Saitek_ST290_Pro::vrpn_Saitek_ST290_Pro(), vrpn_VPJoystick::vrpn_VPJoystick(), vrpn_Xkeys_Desktop::vrpn_Xkeys_Desktop(), vrpn_Xkeys_Jog_And_Shuttle::vrpn_Xkeys_Jog_And_Shuttle(), vrpn_Xkeys_Jog_And_Shuttle12::vrpn_Xkeys_Jog_And_Shuttle12(), vrpn_Xkeys_Jog_And_Shuttle68::vrpn_Xkeys_Jog_And_Shuttle68(), vrpn_Xkeys_Joystick::vrpn_Xkeys_Joystick(), vrpn_Xkeys_Joystick12::vrpn_Xkeys_Joystick12(), vrpn_Xkeys_Pro::vrpn_Xkeys_Pro(), vrpn_Xkeys_XK3::vrpn_Xkeys_XK3(), and vrpn_YEI_3Space::vrpn_YEI_3Space().
|
protected |
Definition at line 47 of file vrpn_Button.h.
|
protected |
Definition at line 48 of file vrpn_Button.h.
Referenced by vrpn_GlobalHapticsOrb::clear_values(), vrpn_3DConnexion::decodePacket(), vrpn_3DConnexion_SpaceMouseProWireless::decodePacket(), vrpn_DreamCheeky_Drum_Kit::decodePacket(), encode_states_to(), vrpn_Button_Filter::encode_states_to(), vrpn_Button_Remote::handle_states_message(), vrpn_ADBox::mainloop(), vrpn_Button_Example_Server::mainloop(), vrpn_Button_NI_DIO24::mainloop(), vrpn_Tracker_DTrack::mainloop(), vrpn_VPJoystick::mainloop(), vrpn_Button_Server::number_of_buttons(), print(), vrpn_Button_PinchGlove::read(), vrpn_Contour_ShuttlePROv2::report(), vrpn_Contour_ShuttleXpress::report(), vrpn_Griffin_PowerMate::report(), vrpn_nVidia_shield_stealth_USB::report(), vrpn_nVidia_shield_USB::report(), vrpn_Retrolink_GameCube::report(), vrpn_Retrolink_Genesis::report(), report_changes(), vrpn_Button_Filter::report_changes(), vrpn_Contour_ShuttlePROv2::report_changes(), vrpn_Contour_ShuttleXpress::report_changes(), vrpn_Griffin_PowerMate::report_changes(), vrpn_nVidia_shield_stealth_USB::report_changes(), vrpn_nVidia_shield_USB::report_changes(), vrpn_Retrolink_GameCube::report_changes(), vrpn_Retrolink_Genesis::report_changes(), vrpn_Button_Filter::set_all_momentary(), vrpn_Button_Filter::set_all_toggle(), vrpn_Button_Server::set_button(), set_momentary(), vrpn_Button_Filter::set_momentary(), set_toggle(), vrpn_Button_Filter::set_toggle(), vrpn_3DConnexion::vrpn_3DConnexion(), vrpn_3DMicroscribe::vrpn_3DMicroscribe(), vrpn_BiosciencesTools::vrpn_BiosciencesTools(), vrpn_Button(), vrpn_Button_5DT_Server::vrpn_Button_5DT_Server(), vrpn_Button_Example_Server::vrpn_Button_Example_Server(), vrpn_Button_NI_DIO24::vrpn_Button_NI_DIO24(), vrpn_Button_Parallel::vrpn_Button_Parallel(), vrpn_Button_PinchGlove::vrpn_Button_PinchGlove(), vrpn_Button_Remote::vrpn_Button_Remote(), vrpn_Button_SerialMouse::vrpn_Button_SerialMouse(), vrpn_Button_Server::vrpn_Button_Server(), vrpn_CerealBox::vrpn_CerealBox(), vrpn_CHProducts_Fighterstick_USB::vrpn_CHProducts_Fighterstick_USB(), vrpn_Contour_ShuttlePROv2::vrpn_Contour_ShuttlePROv2(), vrpn_Contour_ShuttleXpress::vrpn_Contour_ShuttleXpress(), vrpn_DreamCheeky_Drum_Kit::vrpn_DreamCheeky_Drum_Kit(), vrpn_Event_Mouse::vrpn_Event_Mouse(), vrpn_Futaba_InterLink_Elite::vrpn_Futaba_InterLink_Elite(), vrpn_GlobalHapticsOrb::vrpn_GlobalHapticsOrb(), vrpn_Griffin_PowerMate::vrpn_Griffin_PowerMate(), vrpn_IDEA::vrpn_IDEA(), vrpn_ImmersionBox::vrpn_ImmersionBox(), vrpn_inertiamouse::vrpn_inertiamouse(), vrpn_Joystick::vrpn_Joystick(), vrpn_Keyboard::vrpn_Keyboard(), vrpn_Logitech_Extreme_3D_Pro::vrpn_Logitech_Extreme_3D_Pro(), vrpn_Magellan::vrpn_Magellan(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::vrpn_Microsoft_Controller_Raw_Xbox_360_base(), vrpn_Microsoft_Controller_Raw_Xbox_S::vrpn_Microsoft_Controller_Raw_Xbox_S(), vrpn_Microsoft_SideWinder::vrpn_Microsoft_SideWinder(), vrpn_Microsoft_SideWinder_Precision_2::vrpn_Microsoft_SideWinder_Precision_2(), vrpn_Mouse::vrpn_Mouse(), vrpn_nVidia_shield_stealth_USB::vrpn_nVidia_shield_stealth_USB(), vrpn_nVidia_shield_USB::vrpn_nVidia_shield_USB(), vrpn_raw_SGIBox::vrpn_raw_SGIBox(), vrpn_Retrolink_GameCube::vrpn_Retrolink_GameCube(), vrpn_Retrolink_Genesis::vrpn_Retrolink_Genesis(), vrpn_Saitek_ST290_Pro::vrpn_Saitek_ST290_Pro(), vrpn_Spaceball::vrpn_Spaceball(), vrpn_Tng3::vrpn_Tng3(), vrpn_Tracker_3DMouse::vrpn_Tracker_3DMouse(), vrpn_Tracker_DTrack::vrpn_Tracker_DTrack(), vrpn_Tracker_PhaseSpace::vrpn_Tracker_PhaseSpace(), vrpn_Tracker_SpacePoint::vrpn_Tracker_SpacePoint(), vrpn_VPJoystick::vrpn_VPJoystick(), vrpn_Wanda::vrpn_Wanda(), vrpn_WiiMote::vrpn_WiiMote(), vrpn_Xkeys_Desktop::vrpn_Xkeys_Desktop(), vrpn_Xkeys_Jog_And_Shuttle::vrpn_Xkeys_Jog_And_Shuttle(), vrpn_Xkeys_Jog_And_Shuttle12::vrpn_Xkeys_Jog_And_Shuttle12(), vrpn_Xkeys_Jog_And_Shuttle68::vrpn_Xkeys_Jog_And_Shuttle68(), vrpn_Xkeys_Joystick::vrpn_Xkeys_Joystick(), vrpn_Xkeys_Joystick12::vrpn_Xkeys_Joystick12(), vrpn_Xkeys_Pro::vrpn_Xkeys_Pro(), vrpn_Xkeys_XK3::vrpn_Xkeys_XK3(), and vrpn_YEI_3Space::vrpn_YEI_3Space().
|
protected |
Definition at line 51 of file vrpn_Button.h.
Referenced by register_types(), report_states(), and vrpn_Button_Remote::vrpn_Button_Remote().
|
protected |
Definition at line 49 of file vrpn_Button.h.
Referenced by vrpn_Keyboard::get_report(), vrpn_3DConnexion::mainloop(), vrpn_ADBox::mainloop(), vrpn_Button_Example_Server::mainloop(), vrpn_Button_Python::mainloop(), vrpn_Button_SerialMouse::mainloop(), vrpn_Tracker_SpacePoint::on_data_received(), vrpn_Button_PinchGlove::read(), vrpn_Button_Python::read(), vrpn_3DConnexion::report(), vrpn_3DMicroscribe::report(), vrpn_CerealBox::report(), vrpn_CHProducts_Fighterstick_USB::report(), vrpn_Contour_ShuttlePROv2::report(), vrpn_Contour_ShuttleXpress::report(), vrpn_DreamCheeky_Drum_Kit::report(), vrpn_Futaba_InterLink_Elite::report(), vrpn_GlobalHapticsOrb::report(), vrpn_Griffin_PowerMate::report(), vrpn_IDEA::report(), vrpn_ImmersionBox::report(), vrpn_inertiamouse::report(), vrpn_Joystick::report(), vrpn_Logitech_Extreme_3D_Pro::report(), vrpn_Magellan::report(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::report(), vrpn_Microsoft_Controller_Raw_Xbox_S::report(), vrpn_Microsoft_SideWinder::report(), vrpn_Microsoft_SideWinder_Precision_2::report(), vrpn_Mouse::report(), vrpn_nVidia_shield_stealth_USB::report(), vrpn_nVidia_shield_USB::report(), vrpn_Retrolink_GameCube::report(), vrpn_Retrolink_Genesis::report(), vrpn_Saitek_ST290_Pro::report(), vrpn_Spaceball::report(), vrpn_Streaming_Arduino::report(), vrpn_Tng3::report(), vrpn_Xkeys_Desktop::report(), vrpn_Xkeys_Jog_And_Shuttle12::report(), vrpn_Xkeys_Jog_And_Shuttle68::report(), vrpn_Xkeys_Jog_And_Shuttle::report(), vrpn_Xkeys_Joystick12::report(), vrpn_Xkeys_Joystick::report(), vrpn_Xkeys_Pro::report(), vrpn_Xkeys_XK3::report(), vrpn_3DConnexion::report_changes(), vrpn_3DMicroscribe::report_changes(), vrpn_CerealBox::report_changes(), vrpn_CHProducts_Fighterstick_USB::report_changes(), vrpn_Contour_ShuttlePROv2::report_changes(), vrpn_Contour_ShuttleXpress::report_changes(), vrpn_DreamCheeky_Drum_Kit::report_changes(), vrpn_Futaba_InterLink_Elite::report_changes(), vrpn_GlobalHapticsOrb::report_changes(), vrpn_Griffin_PowerMate::report_changes(), vrpn_IDEA::report_changes(), vrpn_ImmersionBox::report_changes(), vrpn_inertiamouse::report_changes(), vrpn_Logitech_Extreme_3D_Pro::report_changes(), vrpn_Magellan::report_changes(), vrpn_Microsoft_Controller_Raw_Xbox_360_base::report_changes(), vrpn_Microsoft_Controller_Raw_Xbox_S::report_changes(), vrpn_Microsoft_SideWinder::report_changes(), vrpn_Microsoft_SideWinder_Precision_2::report_changes(), vrpn_Mouse::report_changes(), vrpn_nVidia_shield_stealth_USB::report_changes(), vrpn_nVidia_shield_USB::report_changes(), vrpn_Retrolink_GameCube::report_changes(), vrpn_Retrolink_Genesis::report_changes(), vrpn_Saitek_ST290_Pro::report_changes(), vrpn_Spaceball::report_changes(), vrpn_Streaming_Arduino::report_changes(), vrpn_Tng3::report_changes(), vrpn_Xkeys_Desktop::report_changes(), vrpn_Xkeys_Jog_And_Shuttle12::report_changes(), vrpn_Xkeys_Jog_And_Shuttle68::report_changes(), vrpn_Xkeys_Jog_And_Shuttle::report_changes(), vrpn_Xkeys_Joystick12::report_changes(), vrpn_Xkeys_Joystick::report_changes(), vrpn_Xkeys_Pro::report_changes(), vrpn_Xkeys_XK3::report_changes(), vrpn_YEI_3Space::report_changes(), report_states(), set_momentary(), vrpn_Button_Filter::set_momentary(), set_toggle(), vrpn_Button_Filter::set_toggle(), vrpn_ADBox::vrpn_ADBox(), vrpn_Button(), vrpn_Button_Parallel::vrpn_Button_Parallel(), vrpn_Button_PinchGlove::vrpn_Button_PinchGlove(), vrpn_Button_Remote::vrpn_Button_Remote(), vrpn_Button_Serial::vrpn_Button_Serial(), vrpn_Button_SerialMouse::vrpn_Button_SerialMouse(), vrpn_Event_Mouse::vrpn_Event_Mouse(), and vrpn_VPJoystick::vrpn_VPJoystick().