Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use computer's mouse to control Android device without mirroring and without losing control of your PC (like second display) #5491

Open
1 task done
TheLastFlame opened this issue Nov 15, 2024 · 3 comments

Comments

@TheLastFlame
Copy link

TheLastFlame commented Nov 15, 2024

I found a few issues related to using scrcpy as a second display (i.e. inverting scrcpy), but that's not quite what I need.

My tablet sits next to my monitor. And sometimes I need to use it.
I want to move the mouse cursor to it as if it were a second monitor. But not translate the windows screen to it, but just let me control the tablet itself.

Similarly with the keyboard.

Scrcpy actually has everything for this, but you need to tell the system that a second monitor has been connected.

@rom1v
Copy link
Collaborator

rom1v commented Nov 15, 2024

Scrcpy actually has everything for this

No, it has not:

  • SDL needs a focused window to capture input events
  • with relative mouse (HID), once the mouse is on your device, we can't know where the mouse actually is on the device (so we can't know when it reaches the border of the screen), and we can only send relative moves, not absolute positions.

@TheLastFlame
Copy link
Author

TheLastFlame commented Nov 15, 2024

  • SDL needs a focused window to capture input events

You can't activate focus when you move the mouse to the second display?

@TheLastFlame
Copy link
Author

to tell the system that we have a second screen, we most likely need a separate video driver (judging by other programs for the second display). Theoretically, it can be used to detect cursor transfer to the second screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants