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

Hide and Show Mouse Cursor On KeyPress #1127

Closed
hammad2224 opened this issue Feb 6, 2020 · 4 comments
Closed

Hide and Show Mouse Cursor On KeyPress #1127

hammad2224 opened this issue Feb 6, 2020 · 4 comments

Comments

@hammad2224
Copy link

How can i hide the mouse cursor and show that on a key press event?

like in emulator games we press a key and mouse cursor is visible and then we press the same key again it locks and hides the mouse.

is it possible to do that is scrcpy?

@hammad2224
Copy link
Author

@rom1v can you please answer this???

@rom1v
Copy link
Collaborator

rom1v commented Feb 7, 2020

No, it is not supported.

Do you mean "capturing the mouse" (#269), or just hide it?

@hammad2224
Copy link
Author

hammad2224 commented Feb 9, 2020

i meant capture the mouse and hide it. like in emulators when you press a key mouse cursor is shown and when you press the key again the mouse cursor is hidden.
i am not talking about showing the mouse cursor or hiding the mouse cursor on mobile device. i am talking about showing or hiding the mouse cursor in the scrcpy window.

like in .net
Cursor.Hide()
Cursor.Show()

@rom1v
Copy link
Collaborator

rom1v commented Feb 9, 2020

i meant capture the mouse and hide it.

OK, so this is #269.

I'm closing as duplicate.

@rom1v rom1v closed this as completed Feb 9, 2020
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