#include <JoystickEvent.h>


Data Structures | |
| class | AxisEvent |
| Implements an event that notifies about axis positions (like analog controls of a joystick). More... | |
| class | ButtonEvent |
| Implements the button event for joysticks. More... | |
| class | HatEvent |
| Implements an event notifiying changes about a directionnal hat on a device (like a joystick). More... | |
Public Member Functions | |
| JoystickEvent () | |
| default constructor. | |
| virtual | ~JoystickEvent () |
| default destructor. | |
Axis | |
| const AxisEvent * | getAxisEvent (const int) const |
| const std::vector< AxisEvent * > & | getAxisEvents (void) const |
| unsigned int | getAxisEventsSize (void) const |
| void | addAxisEvent (AxisEvent *) |
Button | |
| ButtonEvent * | getButtonEvent (void) const |
| bool | getButton (unsigned int) const |
| void | setButtonEvent (ButtonEvent *) |
Hat | |
| const HatEvent * | getHatEvent (const int) const |
| const std::vector< HatEvent * > & | getHatEvents (void) const |
| unsigned int | getHatEventsSize (void) const |
| void | addHatEvent (HatEvent *) |
Protected Attributes | |
| std::vector< AxisEvent * > | axisEvents |
| State of the Analogic Pad. | |
| ButtonEvent * | buttonEvent |
| State of the Joystick Buttons. | |
| std::vector< HatEvent * > | hatEvents |
| State of the directional cross. | |
Definition at line 67 of file JoystickEvent.h.
| sofa::core::objectmodel::JoystickEvent::JoystickEvent | ( | ) |
| sofa::core::objectmodel::JoystickEvent::~JoystickEvent | ( | ) | [virtual] |
default destructor.
Definition at line 145 of file JoystickEvent.cpp.
References axisEvents, buttonEvent, and hatEvents.
| void sofa::core::objectmodel::JoystickEvent::addAxisEvent | ( | JoystickEvent::AxisEvent * | aEvent | ) |
| void sofa::core::objectmodel::JoystickEvent::addHatEvent | ( | JoystickEvent::HatEvent * | hEvent | ) |
| const JoystickEvent::AxisEvent * sofa::core::objectmodel::JoystickEvent::getAxisEvent | ( | const int | index | ) | const |
| const std::vector< JoystickEvent::AxisEvent * > & sofa::core::objectmodel::JoystickEvent::getAxisEvents | ( | void | ) | const |
| unsigned int sofa::core::objectmodel::JoystickEvent::getAxisEventsSize | ( | void | ) | const |
Definition at line 201 of file JoystickEvent.cpp.
References sofa::core::objectmodel::JoystickEvent::ButtonEvent::getButton(), and getButtonEvent().
| JoystickEvent::ButtonEvent * sofa::core::objectmodel::JoystickEvent::getButtonEvent | ( | void | ) | const |
Definition at line 194 of file JoystickEvent.cpp.
References buttonEvent.
Referenced by getButton().
| const JoystickEvent::HatEvent * sofa::core::objectmodel::JoystickEvent::getHatEvent | ( | const int | index | ) | const |
| const std::vector< JoystickEvent::HatEvent * > & sofa::core::objectmodel::JoystickEvent::getHatEvents | ( | void | ) | const |
| unsigned int sofa::core::objectmodel::JoystickEvent::getHatEventsSize | ( | void | ) | const |
| void sofa::core::objectmodel::JoystickEvent::setButtonEvent | ( | JoystickEvent::ButtonEvent * | bEvent | ) |
std::vector< AxisEvent* > sofa::core::objectmodel::JoystickEvent::axisEvents [protected] |
State of the Analogic Pad.
Definition at line 277 of file JoystickEvent.h.
Referenced by addAxisEvent(), getAxisEvent(), getAxisEvents(), getAxisEventsSize(), and ~JoystickEvent().
State of the Joystick Buttons.
Definition at line 278 of file JoystickEvent.h.
Referenced by getButtonEvent(), JoystickEvent(), setButtonEvent(), and ~JoystickEvent().
std::vector< HatEvent* > sofa::core::objectmodel::JoystickEvent::hatEvents [protected] |
State of the directional cross.
Definition at line 279 of file JoystickEvent.h.
Referenced by addHatEvent(), getHatEvent(), getHatEvents(), getHatEventsSize(), and ~JoystickEvent().
1.5.7.1