mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Android: Fix overlay d-pad not working until finger moves
A switch case fallthrough was overlooked when translating from Java to Kotlin.
This commit is contained in:
@ -206,7 +206,10 @@ class InputOverlay(context: Context?, attrs: AttributeSet?) : SurfaceView(contex
|
|||||||
pressed = true
|
pressed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
when (event.action and MotionEvent.ACTION_MASK) {
|
||||||
|
MotionEvent.ACTION_DOWN,
|
||||||
|
MotionEvent.ACTION_POINTER_DOWN,
|
||||||
MotionEvent.ACTION_MOVE -> {
|
MotionEvent.ACTION_MOVE -> {
|
||||||
if (dpad.trackId == event.getPointerId(pointerIndex)) {
|
if (dpad.trackId == event.getPointerId(pointerIndex)) {
|
||||||
val dpadPressed = booleanArrayOf(false, false, false, false)
|
val dpadPressed = booleanArrayOf(false, false, false, false)
|
||||||
|
Reference in New Issue
Block a user