Add "raw key events" mode

Add a command-line option to enable "raw key events" mode
(-k,--raw-key-events).

This disable text inputs and forwards "text" key events (which are
not forwarded by default).

This is helpful for gaming:
<https://github.com/Genymobile/scrcpy/issues/87>
<https://github.com/Genymobile/scrcpy/issues/127>
This commit is contained in:
Romain Vimont
2018-08-15 20:23:29 +02:00
parent 3b5e54278e
commit 9de332bbe5
8 changed files with 135 additions and 14 deletions

View File

@@ -312,6 +312,19 @@ To show physical touches while scrcpy is running:
scrcpy -t
```
For playing games, it may be useful to enable "raw key events" (see [#87] and
[#127]):
```bash
scrcpy -k
```
Note that in this mode, text inputs may not work as expected. As a workaround,
it is still possible to send text using copy-paste.
[#87]: https://github.com/Genymobile/scrcpy/issues/87
[#127]: https://github.com/Genymobile/scrcpy/issues/127
To run without installing:
```bash