ScrcpyNet
ScrcpyNet copied to clipboard
Mouse wheel event to scroll and unicode character input support
- 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?
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.
https://github.com/Fusion86/ScrcpyNet/blob/4abaa91308ea1bb70f169d0673b477e20db7b751/src/ScrcpyNet.Sample.ViewModels/ScrcpyViewModel.cs#L54
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.
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?