mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-26 14:00:08 +00:00
Fix being unable to press the same key down on different gamepads at the same time
This commit is contained in:
1 parent
1c3b9a3859
commit
8aba4888e1
1 file changed
+4
-4
@@ -1102,11 +1102,11 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD
|
|||||||
context.emulatingButtonFlags |= ControllerHandler.EMULATING_SPECIAL;
|
context.emulatingButtonFlags |= ControllerHandler.EMULATING_SPECIAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send a new input packet if this is the first instance of a button down event
|
|
||||||
// or anytime if we're emulating a button
|
// We don't need to send repeat key down events, but the platform
|
||||||
if (event.getRepeatCount() == 0 || context.emulatingButtonFlags != 0) {
|
// sends us events that claim to be repeats but they're from different
|
||||||
|
// devices, so we just send them all and deal with some duplicates.
|
||||||
sendControllerInputPacket(context);
|
sendControllerInputPacket(context);
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user