View source
class FlxActionInputDigitalIFlxInput
package flixel.input.actions
extends FlxActionInputDigital › FlxActionInput
import flixel.input.actions.FlxActionInputDigital
Available since
4.6.0
.Constructor
new(Input:IFlxInput, Trigger:FlxInputState)
Generic IFlxInput action input
WARNING: IFlxInput objects are often member variables of some other object that is often destructed at the end of a state. If you don't destroy() this input (or the action you assign it to), the IFlxInput reference will persist forever even after its parent object has been destroyed!
Parameters:
Input | A generic IFlxInput object (ex: FlxButton.input) |
---|---|
Trigger | Trigger What state triggers this action (PRESSED, JUST_PRESSED, RELEASED, JUST_RELEASED) |