![]() |
nomlib
|
A structure containing information on a mouse button action. More...
#include <InputAction.hpp>
Public Member Functions | |
| MouseButtonAction (uint8 button, InputState state=InputState::PRESSED) | |
| Constructor for initializing an object to a valid action state. | |
| MouseButtonAction (uint8 button, uint8 clicks, InputState state=InputState::PRESSED) | |
| 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 mouse button action.
Definition at line 107 of file InputAction.hpp.
| nom::MouseButtonAction::MouseButtonAction | ( | uint8 | button, |
| InputState | state = InputState::PRESSED ) |
Constructor for initializing an object to a valid action state.
| button | One of the nom::MouseButton enumeration values. |
| state | One of the nom::InputState enumeration values. |
| nom::MouseButtonAction::MouseButtonAction | ( | uint8 | button, |
| uint8 | clicks, | ||
| InputState | state = InputState::PRESSED ) |
Constructor for initializing an object to a valid action state.
| button | One of the nom::MouseButton enumeration values. |
| state | One of the nom::InputState enumeration values. |
| clicks | The number of button clicks to react on; one (1) for a single-click, two (2) for a double-click, three (3) for a triple-click, and so on (hardware-dependent). |