From e7501a488de98a4843ba493aee62f7cd048bd4df Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 1 Jun 2014 17:11:40 -0400 Subject: [PATCH] Raise the minimum button down threshold to minimize missed start button presses on OUYA --- src/com/limelight/binding/input/ControllerHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/limelight/binding/input/ControllerHandler.java b/src/com/limelight/binding/input/ControllerHandler.java index 5c0de658..388f6f65 100644 --- a/src/com/limelight/binding/input/ControllerHandler.java +++ b/src/com/limelight/binding/input/ControllerHandler.java @@ -29,7 +29,7 @@ public class ControllerHandler { private long lastRbUpTime = 0; private static final int MAXIMUM_BUMPER_UP_DELAY_MS = 100; - private static final int MINIMUM_BUTTON_DOWN_TIME_MS = 5; + private static final int MINIMUM_BUTTON_DOWN_TIME_MS = 10; private static final int EMULATING_SPECIAL = 0x1; private static final int EMULATING_SELECT = 0x2; @@ -322,7 +322,7 @@ public class ControllerHandler { // path should not be triggered during normal usage. if (SystemClock.uptimeMillis() - event.getDownTime() < ControllerHandler.MINIMUM_BUTTON_DOWN_TIME_MS) { - // Since our sleep time is so short (5 ms), it shouldn't cause a problem doing this in the + // Since our sleep time is so short (10 ms), it shouldn't cause a problem doing this in the // UI thread. try { Thread.sleep(ControllerHandler.MINIMUM_BUTTON_DOWN_TIME_MS);