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
inlineremove<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>(oldInput:T, newInput:T, destroyOld:Bool = false):Null<T>
Replace an existing input in the system with a new one
Parameters:
oldInput | The old input to replace |
---|---|
newInput | The new input to put in its place |
destroyOld | Whether to destroy the old input |
Returns:
If successful returns newInput
. Otherwise returns null
.