Add new shortcuts description in help

Document the new shortcuts in the help (scrcpy --help).
This commit is contained in:
Romain Vimont 2018-02-02 15:10:44 +01:00
parent 3365460658
commit 0a70e24e80

View file

@ -47,9 +47,37 @@ static void usage(const char *arg0) {
"\n" "\n"
"Shortcuts:\n" "Shortcuts:\n"
"\n" "\n"
" Ctrl+f: switch fullscreen mode\n" " Ctrl+f\n"
" Ctrl+g: resize window to 1:1 (pixel-perfect)\n" " switch fullscreen mode\n"
" Ctrl+x: resize window to optimal size (remove black borders)\n" "\n"
" Ctrl+g\n"
" resize window to 1:1 (pixel-perfect)\n"
"\n"
" Ctrl+x\n"
" resize window to optimal size (remove black borders)\n"
"\n"
" Ctrl+h\n"
" Home\n"
" click on HOME\n"
"\n"
" Ctrl+b\n"
" Ctrl+Backspace\n"
" click on BACK\n"
"\n"
" Ctrl+m\n"
" click on APP_SWITCH\n"
"\n"
" Ctrl+'+'\n"
" click on VOLUME_UP\n"
"\n"
" Ctrl+'-'\n"
" click on VOLUME_DOWN\n"
"\n"
" Ctrl+p\n"
" click on POWER (turn screen on/off)\n"
"\n"
" Right-click\n"
" turn screen on\n"
"\n", "\n",
arg0, arg0,
DEFAULT_BIT_RATE, DEFAULT_BIT_RATE,