Input helpers
More...
|
class | IMButton |
| IM button, short for InputManager button, a class used to handle button states, whether mobile or actual keys More...
|
|
◆ AxisTypes
Enumerator |
---|
Positive | |
Negative | |
◆ ButtonStates
All possible states for a button. Can be used in a state machine.
Enumerator |
---|
Off | |
ButtonDown | |
ButtonPressed | |
ButtonUp | |
◆ ProcessAxisAsButton()
Takes an axis and returns a ButtonState depending on whether the axis is pressed or not (useful for xbox triggers for example), and when you need to use an axis/trigger as a binary thing
- Returns
- The axis as button.
- Parameters
-
axisName | Axis name. |
threshold | Threshold value below which the button is off or released. |
currentState | Current state of the axis. |
The documentation for this class was generated from the following file:
- E:/Github/Store/HighroadEngine/Assets/HighroadEngine/MMTools/Tools/MMHelpers/MMInput.cs