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
I am trying to add a new function for the scrcpy-server, to get the absolute position of pointer.
I tried some ways:
getevent: with getevent command, i can only get the relative movement of cursor
i also tried to calculate the absolute position by relative movement integral, but there is always some error so i think this approach might not be feasible.
startActivityAsUser: i noticed that the scrcpy.wrappers.ActivityManager has a method startActivity, which calls the startActivityAsUser method. I tried to use it to create an activity from an activity class or a package name, but it seems i has no permission to do so.
Would there be any way to implement that? Thank you so much!
The text was updated successfully, but these errors were encountered:
After some trial, the way to change the HID_MOUSE_REPORT_DESC seems not work.
I do not sure if the HID report decription is wrong or the HID input data writing is wrong, and
I also searched a forum posts that says, the android does not support the absolute positioning HID mouse
I am trying to add a new function for the
scrcpy-server
, to get the absolute position of pointer.I tried some ways:
getevent
: with getevent command, i can only get the relative movement of cursorstartActivityAsUser
: i noticed that the scrcpy.wrappers.ActivityManager has a methodstartActivity
, which calls thestartActivityAsUser
method. I tried to use it to create an activity from an activity class or a package name, but it seems i has no permission to do so.Would there be any way to implement that? Thank you so much!
The text was updated successfully, but these errors were encountered: