Add shortcuts to rotate display

Add Ctrl+Left and Ctrl+Right shortcuts to rotate the display (the
content of the scrcpy window).

Contrary to --lock-video-orientation, the rotation has no impact on
recording, and can be changed dynamically (and immediately).

Fixes #218 <https://github.com/Genymobile/scrcpy/issues/218>
This commit is contained in:
Romain Vimont
2020-04-07 23:03:23 +02:00
parent fd63e7eb5a
commit d48b375a1d
6 changed files with 152 additions and 27 deletions

View File

@@ -166,6 +166,14 @@ Default is 0 (automatic).\n
.B Ctrl+f
Switch fullscreen mode
.TP
.B Ctrl+Left
Rotate display left
.TP
.B Ctrl+Right
Rotate display right
.TP
.B Ctrl+g
Resize window to 1:1 (pixel\-perfect)