Interface for digital actions. More...
#include <le2d/input/action_types.hpp>
Public Member Functions | |
| IDigital ()=default | |
| IDigital (int const match) | |
Public Member Functions inherited from le::input::IAction | |
| virtual void | on_key (event::Key const &key)=0 |
| virtual void | on_mouse_button (event::MouseButton const &mb)=0 |
| virtual void | on_scroll (event::Scroll const &scroll)=0 |
| virtual void | on_cursor_pos (event::CursorPos const &cursor_pos)=0 |
| virtual void | update_gamepad (Gamepad const &gamepad)=0 |
| virtual auto | get_gamepad_binding () const -> std::optional< Gamepad::Binding >=0 |
Public Attributes | |
| int | match {} |
| Match identifier. | |
Protected Member Functions | |
| void | on_input (int actor, int action) |
Interface for digital actions.
Digital actions dispatch once when the match is pressed or released.
|
default |
|
inlineexplicit |
|
protected |
| int le::input::action::IDigital::match {} |
Match identifier.