mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 19:13:03 +00:00
Don't assign controller numbers to devices that don't have an analog stick
This commit is contained in:
parent
6d6d7121f6
commit
bf2cc2a4d5
@ -286,7 +286,7 @@ public class ControllerHandler implements InputManager.InputDeviceListener {
|
|||||||
// This is the back button on Shield portable consoles
|
// This is the back button on Shield portable consoles
|
||||||
context.controllerNumber = 0;
|
context.controllerNumber = 0;
|
||||||
}
|
}
|
||||||
else if (multiControllerEnabled) {
|
else if (multiControllerEnabled && context.hasJoystickAxes) {
|
||||||
context.controllerNumber = assignNewControllerNumber();
|
context.controllerNumber = assignNewControllerNumber();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user