#include <JoystickEvent.h>

Public Types | |
| enum | State { CENTERED = 0, UP = 1 << 0, RIGHT = 1 << 1, DOWN = 1 << 2, LEFT = 1 << 3, UP_RIGHT = UP|RIGHT, DOWN_RIGHT = DOWN|RIGHT, DOWN_LEFT = DOWN|LEFT, UP_LEFT = UP|LEFT } |
| Defines possible hat states. More... | |
Public Member Functions | |
| HatEvent (const int, const State) | |
| Constructor. | |
| virtual | ~HatEvent () |
| Default destructor. | |
Accessors | |
| int | getIndex () const |
| Retrieves the index of the hat. | |
| State | getState () const |
| Retrieves the state of the hat. | |
Private Attributes | |
| const int | m_index |
| The index of the hat. | |
| const State | m_state |
| The state of the hat. | |
Definition at line 157 of file JoystickEvent.h.
Constructor.
| index | the hat's index | |
| state | the hat's state |
Definition at line 112 of file JoystickEvent.cpp.
| virtual sofa::core::objectmodel::JoystickEvent::HatEvent::~HatEvent | ( | ) | [inline, virtual] |
| int sofa::core::objectmodel::JoystickEvent::HatEvent::getIndex | ( | ) | const |
Retrieves the index of the hat.
Definition at line 120 of file JoystickEvent.cpp.
References m_index.
| JoystickEvent::HatEvent::State sofa::core::objectmodel::JoystickEvent::HatEvent::getState | ( | ) | const |
Retrieves the state of the hat.
Definition at line 127 of file JoystickEvent.cpp.
References m_state.
const int sofa::core::objectmodel::JoystickEvent::HatEvent::m_index [private] |
const State sofa::core::objectmodel::JoystickEvent::HatEvent::m_state [private] |
1.5.7.1