From 72f3d69a7854ecb5bcd8a5fefe9696e51572ff26 Mon Sep 17 00:00:00 2001 From: Sean Date: Mon, 21 Apr 2014 21:24:49 -0400 Subject: [PATCH] Android: Allow finger movement while pressing button --- .../dolphinemu/dolphinemu/emulation/overlay/InputOverlay.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/emulation/overlay/InputOverlay.java b/Source/Android/src/org/dolphinemu/dolphinemu/emulation/overlay/InputOverlay.java index cd00dc09a6..6d0f4667b4 100644 --- a/Source/Android/src/org/dolphinemu/dolphinemu/emulation/overlay/InputOverlay.java +++ b/Source/Android/src/org/dolphinemu/dolphinemu/emulation/overlay/InputOverlay.java @@ -116,7 +116,8 @@ public final class InputOverlay extends SurfaceView implements OnTouchListener // // TODO: Refactor this so we detect either Axis movements or button presses so we don't run two loops all the time. // - int buttonState = (event.getAction() == MotionEvent.ACTION_DOWN) ? ButtonState.PRESSED : ButtonState.RELEASED; + int buttonState = (event.getAction() == MotionEvent.ACTION_DOWN || event.getAction() == MotionEvent.ACTION_MOVE) + ? ButtonState.PRESSED : ButtonState.RELEASED; // Check if there was a touch within the bounds of a drawable. for (InputOverlayDrawableButton button : overlayButtons) {