mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 14:21:08 +00:00
Don't assign controller numbers to devices that don't have an analog stick
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user