Available since

4.6.0

.

Constructor

new(Input:IFlxInput, Trigger:FlxInputState)

Generic IFlxInput action input

WARNING: IFlxInput objects are often member variables of some other object that is often destructed at the end of a state. If you don't destroy() this input (or the action you assign it to), the IFlxInput reference will persist forever even after its parent object has been destroyed!

Parameters:

Input

A generic IFlxInput object (ex: FlxButton.input)

Trigger

Trigger What state triggers this action (PRESSED, JUST_PRESSED, RELEASED, JUST_RELEASED)

Methods

Inherited Variables

Defined by FlxActionInput

@:value(false)read onlydestroyed:Bool = false

device:FlxInputDevice

Mouse, Keyboard, Gamepad, SteamController, etc.

deviceID:Int

Gamepad ID or Steam Controller handle (ignored for Mouse & Keyboard)

read onlyinputID:Int

Input code (FlxMouseButtonID, FlxKey, FlxGamepadInputID, or Steam Controller action handle)

read onlytrigger:FlxInputState

What state triggers this action (PRESSED, JUST_PRESSED, RELEASED, JUST_RELEASED)

type:FlxInputType

Digital or Analog

Inherited Methods