![]() |
nomlib
|
A structure containing information on a joystick POV hat action. More...
#include <InputAction.hpp>
Public Member Functions | |
| JoystickHatAction (JoystickID id, uint8 hat, uint8 value) | |
| Constructor for initializing an object to a valid action state. | |
| Public Member Functions inherited from nom::InputAction | |
| InputAction () | |
| Default constructor; constructs an invalid action state. | |
| virtual const Event & | event (void) const |
| Get the underlying event associated with the input action. | |
| const nom::event_callback & | callback (void) const |
| Get the callback assigned to the input action. | |
| void | set_callback (const nom::event_callback &delegate) |
| void | operator() (const Event &evt) const |
| C++ functor; execute the callback assigned for the input action. | |
Additional Inherited Members | |
| Public Attributes inherited from nom::InputAction | |
| Event | event_ |
| The event type and relevant input data; the criteria is used to match against user input. | |
A structure containing information on a joystick POV hat action.
Definition at line 184 of file InputAction.hpp.
| nom::JoystickHatAction::JoystickHatAction | ( | JoystickID | id, |
| uint8 | hat, | ||
| uint8 | value ) |
Constructor for initializing an object to a valid action state.
| id | The unique instance ID given to the joystick by the underlying platform. |
| hat | One of the nom::Joystick::Hat enumeration values. |
| value | One of the nom::Joystick::HatPosition enumeration values. |