diff options
| author | JosJuice <josjuice@gmail.com> | 2023-06-11 10:59:47 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2023-06-13 20:37:59 +0200 |
| commit | ae4d52c838a4919fd728bb3b2cf24442bd1e116b (patch) | |
| tree | e6d2e60532e3f90c3b1fb0077e9d688a8cc9a157 /Source/Android/app/src/main/java | |
| parent | c961c6c35ac8c5385300494e788f9c4041510781 (diff) | |
Android: Fix overlay d-pad not working until finger moves
A switch case fallthrough was overlooked when translating from Java to
Kotlin.
Diffstat (limited to 'Source/Android/app/src/main/java')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.kt index 64fd1fc2cc..cc974a89df 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/overlay/InputOverlay.kt @@ -206,7 +206,10 @@ class InputOverlay(context: Context?, attrs: AttributeSet?) : SurfaceView(contex pressed = true } } - + } + when (event.action and MotionEvent.ACTION_MASK) { + MotionEvent.ACTION_DOWN, + MotionEvent.ACTION_POINTER_DOWN, MotionEvent.ACTION_MOVE -> { if (dpad.trackId == event.getPointerId(pointerIndex)) { val dpadPressed = booleanArrayOf(false, false, false, false) |
