mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +00:00
Disable the Android TV controller hack for now
This commit is contained in:
parent
848ed1ad72
commit
53594ada66
@ -171,16 +171,23 @@ public class ControllerHandler {
|
|||||||
mapping.rightStickDeadzoneRadius = (float) stickDeadzone;
|
mapping.rightStickDeadzoneRadius = (float) stickDeadzone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
FIXME: This is broken on SHIELD
|
||||||
|
|
||||||
// This path will make the back button function as start for Android TV controllers
|
// This path will make the back button function as start for Android TV controllers
|
||||||
// that don't have a real start button. It's fine being KitKat and above because
|
// that don't have a real start button. It's fine being KitKat and above because
|
||||||
// ATV is a 5.0 platform
|
// ATV is a 5.0 platform
|
||||||
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) {
|
||||||
// Check if this controller has a start or menu button
|
// Make sure this is a gamepad and not some other device
|
||||||
boolean[] hasStartKey = dev.hasKeys(KeyEvent.KEYCODE_BUTTON_START, KeyEvent.KEYCODE_MENU, 0);
|
if ((dev.getSources() & InputDevice.SOURCE_GAMEPAD) != 0) {
|
||||||
if (!hasStartKey[0] && !hasStartKey[1]) {
|
// Check if this controller has a start or menu button
|
||||||
mapping.backIsStart = true;
|
boolean[] hasStartKey = dev.hasKeys(KeyEvent.KEYCODE_BUTTON_START, KeyEvent.KEYCODE_MENU, 0);
|
||||||
|
if (!hasStartKey[0] && !hasStartKey[1]) {
|
||||||
|
mapping.backIsStart = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return mapping;
|
return mapping;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user