Made FunkinBackspace automatically take android's back button as a back action

so now on Android you can use the phone's back button instead of always having to press the button in game!
This commit is contained in:
KarimAkra
2025-05-06 18:08:26 -04:00
committed by Cameron Taylor
parent ec5a736be6
commit a34cbaf87f
@@ -25,4 +25,13 @@ class FunkinBackspace extends FunkinButton
if (onClick != null) onDown.add(onClick);
}
public function update(elapsed:Float)
{
super.update(elapsed);
#if android
if (FlxG.FlxG.android.justReleased.BACK) onDown.dispatch();
#end
}
}