sofa::core::objectmodel::JoystickEvent::ButtonEvent Class Reference

Implements the button event for joysticks. More...

#include <JoystickEvent.h>

Collaboration diagram for sofa::core::objectmodel::JoystickEvent::ButtonEvent:

Collaboration graph
[legend]

Public Member Functions

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

Private Attributes

bool m_buttons [32]
 Current State of the whole Joystick Buttons.

Detailed Description

Implements the button event for joysticks.

Definition at line 124 of file JoystickEvent.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 81 of file JoystickEvent.cpp.

References setButtons().

virtual sofa::core::objectmodel::JoystickEvent::ButtonEvent::~ButtonEvent (  )  [inline, virtual]

Default destructor.

Definition at line 135 of file JoystickEvent.h.


Member Function Documentation

bool sofa::core::objectmodel::JoystickEvent::ButtonEvent::getButton ( const int  i  )  const

Definition at line 100 of file JoystickEvent.cpp.

References m_buttons.

Referenced by sofa::core::objectmodel::JoystickEvent::getButton().

void sofa::core::objectmodel::JoystickEvent::ButtonEvent::setButtons ( const int  buttons  ) 

Definition at line 88 of file JoystickEvent.cpp.

References m_buttons.

Referenced by ButtonEvent().


Field Documentation

Current State of the whole Joystick Buttons.

Definition at line 149 of file JoystickEvent.h.

Referenced by getButton(), and setButtons().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:23:45 2008 for Sofa by  doxygen 1.5.7.1