fix(input): move the guest pointer on a suppressed direct tap

This commit is contained in:
Kurt Himebauch committed 2026-11-16 05:36:36 +00:00
1 parent 7394f69b81
commit 6f04166dbd
2 files changed
+11 -1

No files matched your search

@@ -4917,7 +4917,11 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
return true
}
if (event.actionMasked == MotionEvent.ACTION_DOWN) {
if (!pointerLocked) showCursor(event.x.coerceIn(rect.left, rect.right), event.y.coerceIn(rect.top, rect.bottom))
if (!pointerLocked) {
val x = event.x.coerceIn(rect.left, rect.right)
val y = event.y.coerceIn(rect.top, rect.bottom)
if (directTouchHold.tapClicks) showCursor(x, y) else movePointer(x, y)
}
if (WaylandCompositor.nativeFocusTakesTouch()) {
listOf(PointerGestures.BTN_LEFT, PointerGestures.BTN_RIGHT, PointerGestures.BTN_MIDDLE).forEach {
heldButtons.set(1, it, false)