You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In particular, why does scrcpy deliver mouse clicks as originating from a TOOL_TYPE_FINGER, (or more generally MotionEvents that are not of type MotionEvent.ACTION_HOVER_MOVE, and therefore continue to the else case)? Is this intentional?
My motivation for asking is that I'm wondering how Flutter should handle these inputs from scrcpy, as it is currently the source of a bug (flutter/flutter#160144)
The text was updated successfully, but these errors were encountered:
In particular, why does scrcpy deliver mouse clicks as originating from a TOOL_TYPE_FINGER, (or more generally MotionEvents that are not of type MotionEvent.ACTION_HOVER_MOVE, and therefore continue to the else case)? Is this intentional?
Yes. The root cause is that when the user uses the computer mouse, we really want to inject events as if they originated from a finger, not a mouse, because the behavior is different. For example, the selection vs scroll is different with a mouse and a finger. And in some games, the mouse just does not work.
But at the same time, secondary clicks (right or middle click) and hover, which require a mouse type, must still work. So there is no perfect solution.
Uh oh!
There was an error while loading. Please reload this page.
Hi, I have a question about how scrcpy delivers
MotionEvent
shttps://github.com/Genymobile/scrcpy/blob/c5ed2cfc28ee7c7b59b11eb4db1258ac1c633bff/server/src/main/java/com/genymobile/scrcpy/control/Controller.java#L408C68-L408C83
scrcpy/server/src/main/java/com/genymobile/scrcpy/control/Controller.java
Line 413 in c5ed2cf
In particular, why does scrcpy deliver mouse clicks as originating from a
TOOL_TYPE_FINGER
, (or more generallyMotionEvent
s that are not of typeMotionEvent.ACTION_HOVER_MOVE
, and therefore continue to the else case)? Is this intentional?My motivation for asking is that I'm wondering how Flutter should handle these inputs from
scrcpy
, as it is currently the source of a bug (flutter/flutter#160144)The text was updated successfully, but these errors were encountered: