This commit is contained in:
Ralty
2025-07-26 18:56:54 +07:00
parent ef6cdd5371
commit 83460a86cb
+1 -1
View File
@@ -106,7 +106,7 @@ class TurboButtons extends TurboBasic {
public function new(inputs:Array<FlxGamepadInputID>, ?gamepad:FlxGamepad, ?delay:Float, ?interval:Float, ?allPress:Bool) {
super(delay, interval, allPress);
this.inputs = inputs;
this.gamepad = gamepad ?? FlxG.gamepads.firstActive;
this.gamepad = gamepad != null ? gamepad : FlxG.gamepads.firstActive;
}
override function get_pressed() {