mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-18 18:42:46 +00:00
Treat all InputDevices as external on the Tinker Board
This commit is contained in:
parent
c251cd2e8f
commit
b87ca71103
@ -335,6 +335,13 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
|
||||
}
|
||||
|
||||
private static boolean isExternal(InputDevice dev) {
|
||||
// The ASUS Tinker Board inaccurately reports Bluetooth gamepads as internal,
|
||||
// causing shouldIgnoreBack() to believe it should pass through back as a
|
||||
// navigation event for any attached gamepads.
|
||||
if (Build.MODEL.equals("Tinker Board")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
// Landroid/view/InputDevice;->isExternal()Z is officially public on Android Q
|
||||
return dev.isExternal();
|
||||
|
Loading…
x
Reference in New Issue
Block a user