...

Static methods

staticgetStickInput(str:String):StickInput

Given a string of the form "left_analog_stick_x_plus", returns a StickInput object with the corresponding values @return

Parameters:

str

Constructor

new(Gamepad:FlxGamepad, Input:StickInput, ?Combos:Array<FlxGamepadInputID>, ?Forbiddens:Array<FlxGamepadInputID>)

Methods

Inherited Variables

Defined by FlxMultiGamepad

Defined by FlxBaseMultiInput

combos:Array<Int>

Any other inputs that must be pressed at the same time, ie, shift, alt, etc

forbiddens:Array<Int>

Any other inputs, that if pressed at the same time, forbid the press. (Forbidden is useful so you can distinguish a "TAB" from a "SHIFT+TAB" -- you add "SHIFT" to the first one's forbidden list)

input:Int

The code for the main input itself, ie, tab, or the A button

Inherited Methods

Defined by FlxBaseMultiInput

justPressed():Bool

Was the main key JUST pressed, AND are all of the combo keys currently pressed? (and none of the forbiddens?)

justReleased():Bool

Was the main key JUST released, AND are no forbidden keys currently pressed? (Ignore whether combos were just released)

pressed():Bool

Is the main key and all of the combo keys currently pressed? (and none of the forbiddens?)