controller crash fix

This commit is contained in:
Kade-gtihub
2025-11-14 16:34:05 -08:00
committed by Kade
parent 1b90b7bebf
commit ba52b932ee
@@ -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);