Utilities for working with inputs.
Static methods
staticallPressed(keyArray:Array<FlxKey>):Bool
Returns true if all of the keys in keyArray are being pressed
Parameters:
keyArray | An array of FlxKeys |
|---|
Returns:
Bool True if all keys in keyArray are being pressed
staticallPressedWithDebounce(keyArray:Array<FlxKey>):Bool
Returns true if all of the keys in keyArray are being pressed, but also only fires once on the last key in the array being justPressed
Parameters:
keyArray | An array of FlxKeys |
|---|
Returns:
Bool True if all of the keys in keyArray are being pressed, with at least one of them being in a JUST_PRESSED state
staticanyNotPressed(keyArray:Array<FlxKey>):Bool
Returns if any key is not being pressed (or just pressed)
Parameters:
keyArray | An array of FlxKeys |
|---|
Returns:
Bool True if there's any key in keyArray that isn't being pressed