From 8aba4888e16540f571bae1a18f1d670a51bde30b Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 30 Oct 2016 15:26:52 -0700 Subject: [PATCH] Fix being unable to press the same key down on different gamepads at the same time --- .../com/limelight/binding/input/ControllerHandler.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/limelight/binding/input/ControllerHandler.java b/app/src/main/java/com/limelight/binding/input/ControllerHandler.java index 4f7e1771..7aea0a38 100644 --- a/app/src/main/java/com/limelight/binding/input/ControllerHandler.java +++ b/app/src/main/java/com/limelight/binding/input/ControllerHandler.java @@ -1102,11 +1102,11 @@ public class ControllerHandler implements InputManager.InputDeviceListener, UsbD 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 - if (event.getRepeatCount() == 0 || context.emulatingButtonFlags != 0) { - sendControllerInputPacket(context); - } + + // We don't need to send repeat key down events, but the platform + // 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); return true; }