View source
class FlxActionInputDigitalGamepad
package flixel.input.actions
extends FlxActionInputDigital › FlxActionInput
import flixel.input.actions.FlxActionInputDigital
Available since
4.6.0
.Constructor
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 |