Interface for binary 1D axis actions. More...
#include <le2d/input/action_types.hpp>
Public Member Functions | |
| IBinaryAxis1D ()=default | |
| IBinaryAxis1D (int const lo, int const hi) | |
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 | lo {} |
| Match for -1. | |
| int | hi {} |
| Match for +1. | |
Protected Member Functions | |
| void | on_input (int actor, int action) |
Interface for binary 1D axis actions.
Axis actions dispatch the resultant value every time.
|
default |
|
inlineexplicit |
| lo | Match for -1. |
| hi | Match for +1. |
|
protected |
| int le::input::action::IBinaryAxis1D::hi {} |
Match for +1.
| int le::input::action::IBinaryAxis1D::lo {} |
Match for -1.