#include <JoystickEvent.h>

Public Member Functions | |
| AxisEvent (const int, const float) | |
| Constructor. | |
| virtual | ~AxisEvent () |
| Default destructor. | |
Accessors | |
| int | getIndex () const |
| Retrieves the index of the axis. | |
| float | getValue () const |
| Retrieves the value of the axis. | |
Private Attributes | |
| const int | m_index |
| The index of the axis. | |
| const float | m_value |
| The value of the xais. | |
The axis position is normalized so values are always in the range [-1, 1].
Definition at line 75 of file JoystickEvent.h.
| sofa::core::objectmodel::JoystickEvent::AxisEvent::AxisEvent | ( | const int | index, | |
| const float | value | |||
| ) |
Constructor.
| index | axis' index | |
| value | axis' value (must be in the range [-1, 1]) |
Definition at line 54 of file JoystickEvent.cpp.
| virtual sofa::core::objectmodel::JoystickEvent::AxisEvent::~AxisEvent | ( | ) | [inline, virtual] |
| int sofa::core::objectmodel::JoystickEvent::AxisEvent::getIndex | ( | ) | const |
Retrieves the index of the axis.
Definition at line 63 of file JoystickEvent.cpp.
References m_index.
| float sofa::core::objectmodel::JoystickEvent::AxisEvent::getValue | ( | ) | const |
Retrieves the value of the axis.
Definition at line 70 of file JoystickEvent.cpp.
References m_value.
const int sofa::core::objectmodel::JoystickEvent::AxisEvent::m_index [private] |
const float sofa::core::objectmodel::JoystickEvent::AxisEvent::m_value [private] |
1.5.7.1