Compare commits

..
3 Commits
3 changed files with 3 additions and 17 deletions

No files matched your search

+2 -2
View File
@@ -11,8 +11,8 @@ android {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 25 targetSdkVersion 25
versionName "4.8.2" versionName "4.8.3"
versionCode = 114 versionCode = 115
} }
productFlavors { productFlavors {
+1
View File
@@ -26,6 +26,7 @@
<application <application
android:allowBackup="true" android:allowBackup="true"
android:isGame="true"
android:banner="@drawable/atv_banner" android:banner="@drawable/atv_banner"
android:icon="@drawable/ic_launcher" android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"> 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 // 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) { 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 // 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) { if (gasRange == null) {
context.isXboxBtController = true; context.isXboxBtController = true;
} }
else {
context.ignoreBack = false;
}
} }
} }