v2.2.0: fixed crashes with text input and controllers

This commit is contained in:
Evan Debenham
2023-09-18 11:40:32 -04:00
parent b26b943eee
commit 6c4c4be6f6

View File

@@ -45,7 +45,8 @@ public class ControllerHandler implements ControllerListener {
public static boolean controllerActive = false; public static boolean controllerActive = false;
//sufficiently large number so that it'll never collide with touch pointers (which start at 0) //sufficiently large number so that it'll never collide with touch pointers (which start at 0)
public static final int CONTROLLER_POINTER_ID = 1000; //19 is the max to avoid array overflow when interacting with some libGDX graphics objects
public static final int CONTROLLER_POINTER_ID = 19;
private static void setControllerType(Controller controller){ private static void setControllerType(Controller controller){
if (controller.getName().contains("Xbox")){ if (controller.getName().contains("Xbox")){