Available since

4.6.0

.

Constructor

new(Name:String, ?DigitalActions:Array<FlxActionDigital>, ?AnalogActions:Array<FlxActionAnalog>)

Variables

@:value(true)active:Bool = true

Whether this action set runs when update() is called

read onlyanalogActions:Array<FlxActionAnalog>

Analog actions in this set

read onlydigitalActions:Array<FlxActionDigital>

Digital actions in this set

@:value("")read onlyname:String = ""

Name of the action set

Methods

@:value({ Attach : true })attachSteamController(Handle:Int, Attach:Bool = true):Void

Automatically adds or removes inputs for a steam controller to any steam-affiliated actions

Parameters:

Handle

steam controller handle from FlxSteam.getConnectedControllers(), or FlxInputDeviceID.FIRST_ACTIVE / ALL

Attach

true: adds inputs, false: removes inputs

@:value({ Destroy : true })remove(Action:FlxAction, Destroy:Bool = true):Bool

Remove an action from this set

Parameters:

Action

a FlxAction

Destroy

whether to destroy it as well

Returns:

whether it was found and removed

update():Void

Update all the actions in this set (each will check inputs & potentially trigger)