class FunkinAction
package funkin.input
extends FlxActionDigital › FlxAction
import funkin.input.Controls
Available on all platforms
An FlxActionDigital with additional functionality, including:
- Combining pressed and released inputs into one action.
- Filtering by input method (KEYBOARD, MOUSE, GAMEPAD, etc).
Constructor
Variables
Methods
checkFiltered(?filterTrigger:FlxInputState, ?filterDevice:FlxInputDevice):Bool
Performs the functionality of FlxActionDigital.check(), but with optional filters.
Parameters:
action | The action to check for. |
|---|---|
filterTrigger | Optionally filter by trigger condition ( |
filterDevice | Optionally filter by device ( |
Returns:
bool if our input has been triggered
checkJustPressed():Bool
Check whether the input is currently being held, and was not held last frame.
checkJustPressedGamepad():Bool
Check whether the input is currently being held by a gamepad device, and was not held last frame.
checkJustReleased():Bool
Check whether the input is not currently being held, and was held last frame.
checkJustReleasedGamepad():Bool
Check whether the input is not currently being held by a gamepad device, and was held last frame.