From ba52b932eefdd3abcf1bc7be534f18992673bd26 Mon Sep 17 00:00:00 2001 From: Kade-gtihub <26305836+Kade-github@users.noreply.github.com> Date: Thu, 13 Nov 2025 18:06:46 -0800 Subject: [PATCH] controller crash fix --- source/funkin/input/TurboButtonHandler.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/source/funkin/input/TurboButtonHandler.hx b/source/funkin/input/TurboButtonHandler.hx index 0e569cde1..45786f8a7 100644 --- a/source/funkin/input/TurboButtonHandler.hx +++ b/source/funkin/input/TurboButtonHandler.hx @@ -55,6 +55,7 @@ class TurboButtonHandler extends FlxBasic function get_allPressed():Bool { if (targetGamepad == null) return false; + if (!targetGamepad.connected) return false; if (inputs == null || inputs.length == 0) return false; if (inputs.length == 1) return targetGamepad.anyPressed(inputs);