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