Force the Archos Gamepad 2's controller buttons as controller 0

This commit is contained in:
Cameron Gutman 2016-04-23 22:23:43 -04:00
parent d0dd5bfa8c
commit 39fa0258ad

View File

@ -147,8 +147,9 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
InputDeviceContext devContext = (InputDeviceContext) context; InputDeviceContext devContext = (InputDeviceContext) context;
LimeLog.info(devContext.name+" ("+context.id+") needs a controller number assigned"); LimeLog.info(devContext.name+" ("+context.id+") needs a controller number assigned");
if (devContext.name != null && devContext.name.contains("gpio-keys")) { if (devContext.name != null &&
// This is the back button on Shield portable consoles (devContext.name.contains("gpio-keys") || // This is the back button on Shield portable consoles
devContext.name.contains("joy_key"))) { // These are the gamepad buttons on the Archos Gamepad 2
LimeLog.info("Built-in buttons hardcoded as controller 0"); LimeLog.info("Built-in buttons hardcoded as controller 0");
context.controllerNumber = 0; context.controllerNumber = 0;
} }