mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07: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:
parent
c961c6c35a
commit
ae4d52c838
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user