vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Button.h File Reference
#include <stddef.h>
#include "vrpn_BaseClass.h"
#include "vrpn_Configure.h"
#include "vrpn_Shared.h"
#include "vrpn_Types.h"
Include dependency graph for vrpn_Button.h:

Go to the source code of this file.

Classes

class  vrpn_Button
 This is the base class for both the client and server for a button device (a device with one or more boolean switches). More...
 
class  vrpn_Button_Filter
 All button servers should derive from this class, which provides the ability to turn any of the buttons into toggles (using messages from the remote button object). More...
 
class  vrpn_Button_Server
 
class  vrpn_Button_Example_Server
 
class  vrpn_Button_Parallel
 
class  vrpn_Button_Python
 
class  vrpn_Button_Serial
 
class  vrpn_Button_PinchGlove
 
struct  vrpn_BUTTONCB
 
struct  vrpn_BUTTONSTATESCB
 
class  vrpn_Button_Remote
 

Macros

#define VRPN_BUTTON_OFF   (0)
 
#define VRPN_BUTTON_ON   (1)
 
#define VRPN_BUTTON_H
 

Typedefs

typedef void(VRPN_CALLBACKvrpn_BUTTONCHANGEHANDLER) (void *userdata, const vrpn_BUTTONCB info)
 
typedef void(VRPN_CALLBACKvrpn_BUTTONSTATESHANDLER) (void *userdata, const vrpn_BUTTONSTATESCB info)
 

Variables

class VRPN_API vrpn_Connection
 
const int vrpn_BUTTON_MAX_BUTTONS = 256
 
const int VRPN_BUTTON_BUF_SIZE = 256
 
const int vrpn_BUTTON_MOMENTARY = 10
 
const int vrpn_BUTTON_TOGGLE_OFF = 20
 
const int vrpn_BUTTON_TOGGLE_ON = 21
 
const int vrpn_BUTTON_LIGHT_OFF = 30
 
const int vrpn_BUTTON_LIGHT_ON = 31
 
const int vrpn_ALL_ID = -99
 

Macro Definition Documentation

◆ VRPN_BUTTON_H

#define VRPN_BUTTON_H

Definition at line 295 of file vrpn_Button.h.

◆ VRPN_BUTTON_OFF

#define VRPN_BUTTON_OFF   (0)

Definition at line 222 of file vrpn_Button.h.

◆ VRPN_BUTTON_ON

#define VRPN_BUTTON_ON   (1)

Definition at line 223 of file vrpn_Button.h.

Typedef Documentation

◆ vrpn_BUTTONCHANGEHANDLER

typedef void(VRPN_CALLBACK * vrpn_BUTTONCHANGEHANDLER) (void *userdata, const vrpn_BUTTONCB info)

Definition at line 230 of file vrpn_Button.h.

◆ vrpn_BUTTONSTATESHANDLER

typedef void(VRPN_CALLBACK * vrpn_BUTTONSTATESHANDLER) (void *userdata, const vrpn_BUTTONSTATESCB info)

Definition at line 243 of file vrpn_Button.h.

Variable Documentation

◆ vrpn_ALL_ID

const int vrpn_ALL_ID = -99

Definition at line 23 of file vrpn_Button.h.

Referenced by vrpn_Button::set_all_momentary(), and vrpn_Button::set_all_toggle().

◆ VRPN_BUTTON_BUF_SIZE

const int VRPN_BUTTON_BUF_SIZE = 256

Definition at line 13 of file vrpn_Button.h.

◆ vrpn_BUTTON_LIGHT_OFF

const int vrpn_BUTTON_LIGHT_OFF = 30

Definition at line 21 of file vrpn_Button.h.

◆ vrpn_BUTTON_LIGHT_ON

const int vrpn_BUTTON_LIGHT_ON = 31

Definition at line 22 of file vrpn_Button.h.

◆ vrpn_BUTTON_MAX_BUTTONS

◆ vrpn_BUTTON_MOMENTARY

◆ vrpn_BUTTON_TOGGLE_OFF

◆ vrpn_BUTTON_TOGGLE_ON

◆ vrpn_Connection

Definition at line 9 of file vrpn_Button.h.