Codename LogoCodename Logo

funkin.backend.system.Controls

APIWikiTools

A list of actions that a player would invoke via some input device. Uses FlxActions to funnel various inputs to a single action.

Static methods

View on GitHub

staticinlineaddButtons(action:FlxActionDigital, buttons:Array<FlxGamepadInputID>, state:FlxInputState, id:Int):Void

View on GitHub

staticinlineaddKeys(action:FlxActionDigital, keys:Array<FlxKey>, state:FlxInputState):Void

View on GitHub

staticinlineisGamepad(input:FlxActionInput, deviceID:Int):Bool

View on GitHub

staticremoveButtons(action:FlxActionDigital, gamepadID:Int, buttons:Array<FlxGamepadInputID>):Void

View on GitHub

staticremoveKeys(action:FlxActionDigital, keys:Array<FlxKey>):Void

Constructor

View on GitHub

new(name:String, scheme:KeyboardScheme = None)

Variables

Methods

View on GitHub

addGamepad(id:Int, buttonMap:Map<Control, Array<FlxGamepadInputID>>):Void

View on GitHub

inlinebindButtons(control:Control, id:Int, buttons:Array<FlxGamepadInputID>):Void

Sets all actions that pertain to the binder to trigger when the supplied keys are used. If binder is a literal you can inline this

View on GitHub

inlinebindKeys(control:Control, keys:Array<FlxKey>):Void

Sets all actions that pertain to the binder to trigger when the supplied keys are used. If binder is a literal you can inline this

View on GitHub

@:nullSafety(Off)inlinegetJustPressed(name:String):Bool

View on GitHub

@:nullSafety(Off)inlinegetJustReleased(name:String):Bool

View on GitHub

getKeyName(control:Control, idx:Int = 0):String

View on GitHub

@:nullSafety(Off)inlinegetPressed(name:String):Bool

View on GitHub

removeGamepad(deviceID:Int = FlxInputDeviceID.ALL):Void

View on GitHub

replaceBindingGamepad(control:Control, deviceID:Int, ?toAdd:Int, ?toRemove:Int):Void

View on GitHub

replaceBindingKeyboard(control:Control, ?toAdd:Int, ?toRemove:Int):Void

View on GitHub

setKeyboardScheme(scheme:KeyboardScheme, reset:Bool = true):Void

View on GitHub

inlineunbindButtons(control:Control, gamepadID:Int, buttons:Array<FlxGamepadInputID>):Void

Sets all actions that pertain to the binder to trigger when the supplied keys are used. If binder is a literal you can inline this

View on GitHub

inlineunbindKeys(control:Control, keys:Array<FlxKey>):Void

Sets all actions that pertain to the binder to trigger when the supplied keys are used. If binder is a literal you can inline this