SOFA API  99934cbc
Open source framework for multi-physics simuation
sofa::core::objectmodel::JoystickEvent::ButtonEvent Class Reference

#include <JoystickEvent.h>

Implements the button event for joysticks. More...

Detailed Description

Implements the button event for joysticks.

Public Member Functions

 ButtonEvent (const int buttonStates=0)
 Default constructor. More...
virtual ~ButtonEvent ()
 Default destructor. More...
void setButtons (const int)
bool getButton (const int) const
virtual const char * getClassName () const

Constructor details

sofa::core::objectmodel::JoystickEvent::ButtonEvent::ButtonEvent ( const int  buttonStates = 0)

Default constructor.

sofa::core::objectmodel::JoystickEvent::ButtonEvent::~ButtonEvent ( )

Default destructor.

Function details

bool sofa::core::objectmodel::JoystickEvent::ButtonEvent::getButton ( const int  i) const
virtual const char* sofa::core::objectmodel::JoystickEvent::ButtonEvent::getClassName ( ) const
void sofa::core::objectmodel::JoystickEvent::ButtonEvent::setButtons ( const int  buttons)