diff --git a/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/AndroidControllers.java b/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/AndroidControllers.java index d5dd1b1..52eed5c 100644 --- a/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/AndroidControllers.java +++ b/gdx-controllers-android/src/com/badlogic/gdx/controllers/android/AndroidControllers.java @@ -254,7 +254,6 @@ private void gatherControllers(boolean sendEvent) { removedControllers.putAll(controllerMap); for(int deviceId: InputDevice.getDeviceIds()) { - InputDevice device = InputDevice.getDevice(deviceId); AndroidController controller = controllerMap.get(deviceId); if(controller != null) { removedControllers.remove(deviceId); @@ -311,7 +310,8 @@ protected void removeController(int deviceId) { private boolean isController(InputDevice device) { return ((device.getSources() & InputDevice.SOURCE_CLASS_JOYSTICK) == InputDevice.SOURCE_CLASS_JOYSTICK) && (((device.getSources() & InputDevice.SOURCE_GAMEPAD) == InputDevice.SOURCE_GAMEPAD) - || (device.getKeyboardType() != InputDevice.KEYBOARD_TYPE_ALPHABETIC)); + || (device.getKeyboardType() != InputDevice.KEYBOARD_TYPE_ALPHABETIC)) + && !"uinput-fpc".equals(device.getName()); } @Override