|
Rebel Fork Framework
|
Helper class to translate controller axis. More...
#include <Urho3D/Input/InputMap.h>
Public Member Functions | |
| ControllerAxisMapping (ControllerAxis controllerAxis, float neutral=0.0f, float pressed=1.0f) | |
| ControllerAxisMapping (unsigned axisIndex, float neutral=0.0f, float pressed=1.0f) | |
| ControllerAxis | GetControllerAxis () const |
| Get controller button. | |
| unsigned | GetGenericAxis () const |
| Get generic button. | |
| void | SerializeInBlock (Archive &archive) |
| Serialize content from/to archive. May throw ArchiveException. | |
| bool | OverlapsWith (const ControllerAxisMapping &mapping) const |
| Check if the mapping overlaps with the other one, including matching axis index and controller type. | |
| float | Translate (float pos, float deadZone) const |
| Translate axis value into 0..1 range. Returns 0 if the value is outside of the range. | |
Public Attributes | |
| bool | controller_ {} |
| unsigned | axis_ {} |
| float | neutral_ |
| float | pressed_ |
Helper class to translate controller axis.