tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

Mouse map manual override

Open db39 opened this issue 3 years ago • 1 comments

Some users have found that their TinyPilot mouse does not have the same position as their target machine's mouse cursor. And the offset isn't fixed either. This suggests that the screen's reported resolution and the resolution being used by the mouse are different. i.e., the screen may output at 720p, but the mouse is working with the assumption that the resolution is 1080p for some reason.

Can we give users a way to tell TinyPilot that the remote screen is actually a different size than the device is reporting and map the mouse accordingly?

db39 avatar Oct 17 '22 15:10 db39

The place where we scale mouse coordinates to the remote screen is here:

https://github.com/tiny-pilot/tinypilot/blob/bf3c39302ecf643f288ec0e5da50c49e61a61944/app/hid/mouse.py#L20L26

It's possible we could integrate some user-controllable configuration here so the user can add offsets or custom scaling to the way we translate the x, y coordinates to the remote device.

mtlynch avatar Oct 18 '22 12:10 mtlynch