Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a539ac62ec | |||
| fa52e5edc2 | |||
| 3ca681f050 |
+2
-2
@@ -11,8 +11,8 @@ android {
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 25
|
||||
|
||||
versionName "4.8.2"
|
||||
versionCode = 114
|
||||
versionName "4.8.3"
|
||||
versionCode = 115
|
||||
}
|
||||
|
||||
productFlavors {
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:isGame="true"
|
||||
android:banner="@drawable/atv_banner"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
@@ -339,18 +339,6 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
|
||||
}
|
||||
}
|
||||
|
||||
// Ignore the back buttonn if a controller has both buttons
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
|
||||
boolean[] hasSelectKey = dev.hasKeys(KeyEvent.KEYCODE_BUTTON_SELECT, KeyEvent.KEYCODE_BACK, 0);
|
||||
if (hasSelectKey[0] && hasSelectKey[1]) {
|
||||
// Xiaomi gamepads claim to have both buttons then only send KEYCODE_BACK events
|
||||
if (dev.getVendorId() != 0x2717) {
|
||||
LimeLog.info("Ignoring back button because select is present");
|
||||
context.ignoreBack = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The ADT-1 controller needs a similar fixup to the ASUS Gamepad
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
|
||||
// The device name provided is just "Gamepad" which is pretty useless, so we
|
||||
@@ -414,9 +402,6 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
|
||||
if (gasRange == null) {
|
||||
context.isXboxBtController = true;
|
||||
}
|
||||
else {
|
||||
context.ignoreBack = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user