1D gamepad axis action. More...
#include <le2d/input/action.hpp>
Public Member Functions | |
| GamepadAxis1D ()=default | |
| GamepadAxis1D (int const axis, float const dead_zone=dead_zone_v) | |
Public Member Functions inherited from le::input::action::IGamepadAxis | |
| IGamepadAxis ()=default | |
| IGamepadAxis (float const dead_zone) | |
Public Attributes | |
| int | axis {} |
| Matching axis. | |
Public Attributes inherited from le::input::action::IGamepadAxis | |
| float | dead_zone {dead_zone_v} |
| Values with magnitude below this are floored to 0. | |
| Gamepad::Binding | binding {Gamepad::FirstUsed{}} |
| Gamepad binding. | |
Additional Inherited Members | |
Static Public Attributes inherited from le::input::action::IGamepadAxis | |
| static constexpr auto | dead_zone_v = 0.05f |
1D gamepad axis action.
Trigger (LT, RT) value range: [0, 1], axis value range: [-1, 1].
|
default |
|
inlineexplicit |
| axis | Matching axis. |
| dead_zone | Dead zone: values with magnitude below this are floored to 0. |
| int le::input::action::GamepadAxis1D::axis {} |
Matching axis.