mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-19 11:03:01 +00:00
Fix being unable to press the same key down on different gamepads at the same time
This commit is contained in:
parent
1c3b9a3859
commit
8aba4888e1
@ -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
|
||||||
sendControllerInputPacket(context);
|
// devices, so we just send them all and deal with some duplicates.
|
||||||
}
|
sendControllerInputPacket(context);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user