#include <JoystickEvent.h>
Implements an event notifying changes about a directionnal hat on a device (like a joystick). More...
Implements an event notifying changes about a directionnal hat on a device (like a joystick).
Public Member Functions | |
HatEvent (const int, const State) | |
Constructor. More... | |
virtual | ~HatEvent () |
Default destructor. More... | |
Accessors | |
int | getIndex () const |
Retrieves the index of the hat. More... | |
State | getState () const |
Retrieves the state of the hat. More... | |
virtual const char * | getClassName () const |
Constructor.
index | the hat's index |
state | the hat's state |
|
virtual |
Default destructor.
|
inlinevirtual |
int sofa::core::objectmodel::JoystickEvent::HatEvent::getIndex | ( | ) | const |
Retrieves the index of the hat.
JoystickEvent::HatEvent::State sofa::core::objectmodel::JoystickEvent::HatEvent::getState | ( | ) | const |
Retrieves the state of the hat.