Compare commits

...

3 Commits

Author SHA1 Message Date
Cameron Gutman a539ac62ec Version 4.8.3 2017-01-02 19:03:14 -08:00
Cameron Gutman fa52e5edc2 Remove automatic disabling of back button due to false-positives 2017-01-02 19:02:30 -08:00
Cameron Gutman 3ca681f050 Set isGame to get lower video processing latency on some Android TVs 2017-01-02 18:52:20 -08:00
3 changed files with 3 additions and 17 deletions
+2 -2
View File
@@ -11,8 +11,8 @@ android {
minSdkVersion 16
targetSdkVersion 25
versionName "4.8.2"
versionCode = 114
versionName "4.8.3"
versionCode = 115
}
productFlavors {
+1
View File
@@ -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;
}
}
}