View source
class FlxActionInputAnalogGamepad
package flixel.input.actions
extends FlxActionInputAnalog › FlxActionInput
import flixel.input.actions.FlxActionInputAnalog
Available since
4.6.0
.Constructor
new(InputID:FlxGamepadInputID, Trigger:FlxAnalogState, Axis:FlxAnalogAxis = EITHER, GamepadID:Int = FlxInputDeviceID.FIRST_ACTIVE)
Gamepad action input for analog (trigger, joystick, touchpad, etc) events
Parameters:
InputID | "universal" gamepad input ID (LEFT_TRIGGER, RIGHT_ANALOG_STICK, TILT_PITCH, etc) |
---|---|
Trigger | What state triggers this action (MOVED, JUST_MOVED, STOPPED, JUST_STOPPED) |
Axis | which axes to monitor for triggering: X, Y, EITHER, or BOTH |
GamepadID | specific gamepad ID, or FlxInputDeviceID.FIRST_ACTIVE / ALL |