Accessed via FlxG.inputs
.
Variables
resetOnStateSwitch:Bool = true
Whether inputs are reset on state switches. Disable if you need persistent input states across states.
Methods
remove<T>(Input:T):Bool
Removes an input from the system
Parameters:
Input | The input to remove |
---|
Returns:
Bool indicating whether it was removed or not
replace<T>(Old:T, New:T):T
Replace an existing input in the system with a new one
Parameters:
Old | The old input to replace |
---|---|
New | The new input to put in its place |
Returns:
If successful returns New. Otherwise returns null.