Available since

4.6.0

.

Constructor

@:value({ GamepadID : FlxInputDeviceID.FIRST_ACTIVE })new(InputID:FlxGamepadInputID, Trigger:FlxInputState, GamepadID:Int = FlxInputDeviceID.FIRST_ACTIVE)

Gamepad action input for digital (button-like) events

Parameters:

InputID

"universal" gamepad input ID (A, X, DPAD_LEFT, etc)

Trigger

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

GamepadID

specific gamepad ID, or FlxInputDeviceID.ALL / FIRST_ACTIVE

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