View source
class FlxBaseMultiInput
package flixel.addons.ui
implements IFlxDestroyable
extended by FlxMultiGamepad, FlxMultiKey
Makes it easier to check if, say, SHIFT+Tab is being pressed rather than just Tab by itself
Constructor
Variables
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)
Methods
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)