Grab input devices to avoid input events being directed to the console. This also changes the quit logic so Ctrl+C works up until streaming starts when Ctrl+Alt+Shift+Q becomes the quit combo

This commit is contained in:
Cameron Gutman
2015-07-15 03:16:02 -04:00
parent 35cb5224ee
commit 4215364350
2 changed files with 51 additions and 10 deletions

View File

@@ -91,7 +91,8 @@ static void help() {
printf("\t-input <device>\t\tUse <device> as input. Can be used multiple times\n");
printf("\t-mapping <file>\t\tUse <file> as gamepad mapping configuration file (use before -input)\n");
printf("\t-audio <device>\t\tUse <device> as ALSA audio output device (default sysdefault)\n");
printf("\t-localaudio\t\tPlay audio locally\n");
printf("\t-localaudio\t\tPlay audio locally\n\n");
printf("Use Ctrl+Alt+Shift+Q to exit streaming session\n\n");
exit(0);
}