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

Mouse wheel event to scroll and unicode character input support #6

Open
unofficialdev opened this issue Jan 16, 2022 · 2 comments
Open

Comments

@unofficialdev
Copy link

  • Can add support input unicode languages such as Chinese, Vietnamese, Indian... and mouse wheel event to scroll.
  • Also i would like to ask how to send commands like back, home, app sell, capture, volumeup/down, lock screen... individually without having to use adb shell? like pressing the hard keys on the phone.
  • A little more, is it possible to upgrade to support the latest version of scrcpy server?
@Fusion86
Copy link
Owner

Fusion86 commented Jan 16, 2022

No idea whether I can add support for Chinese, Vietnamese, etc. but I'll try it sometime later.

You can use this SendKeycode function as a reference for how to send android keycodes to scrcpy. It doesn't look like you can send the lock screen or capture screenshot keycodes, but maybe I didn't look hard enough. It could be that scrcpy has some special behavior to emulate those keys, but I haven't found it yet.

private void SendKeycode(AndroidKeycode key)

The master branch now uses scrcpy 1.21, though I didn't push this to the nuget packages yet.

E: Mouse scroll shouldn't be an issue.

@unofficialdev
Copy link
Author

unofficialdev commented Jan 17, 2022

thanks for the answer, you should probably check out QTScrcpy, I think they do a pretty good job of emulating hard keys. about mouse wheel to scroll the screen, any idea about it?

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