mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
fix(input): move the guest pointer on a suppressed direct tap
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user