Handle start+select as home button on Thrustmaster Score A gamepad (#1299)

This commit is contained in:
Guillaume Zin 2023-12-31 21:13:22 +01:00 committed by GitHub
parent 69387c32ad
commit 4330a223c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1014,6 +1014,14 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
}
}
// Thrustmaster Score A gamepad home button reports directly to android as
// KEY_HOMEPAGE event on another event channel
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
if (dev.getVendorId() == 0x044f && dev.getProductId() == 0xb328) {
context.hasMode = false;
}
}
LimeLog.info("Analog stick deadzone: "+context.leftStickDeadzoneRadius+" "+context.rightStickDeadzoneRadius);
LimeLog.info("Trigger deadzone: "+context.triggerDeadzone);