Accessed via FlxG.inputs.

Variables

@:value([])read onlylist:Array<IFlxInputManager> = []

A read-only list of all inputs.

@:value(true)resetOnStateSwitch:Bool = true

Whether inputs are reset on state switches. Disable if you need persistent input states across states.

Methods

@:genericadd<T>(Input:T):T

Add an input to the system

Parameters:

Input

The input to add

Returns:

The input

@:genericremove<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

@:genericreplace<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.