![]() |
nomlib
|
Base class for mapping an action to an input device. More...
#include <InputAction.hpp>
Public Member Functions | |
| 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. | |
Public Attributes | |
| Event | event_ |
| The event type and relevant input data; the criteria is used to match against user input. | |
Private Attributes | |
| nom::event_callback | callback_ |
| The delegate to call upon a successful action to event match. | |
Base class for mapping an action to an input device.
Definition at line 41 of file InputAction.hpp.
|
virtual |
Get the underlying event associated with the input action.
|
private |
The delegate to call upon a successful action to event match.
Definition at line 69 of file InputAction.hpp.
| Event nom::InputAction::event_ |
The event type and relevant input data; the criteria is used to match against user input.
Definition at line 65 of file InputAction.hpp.