Update documentation

This commit is contained in:
Iwan Timmer
2015-08-03 11:52:14 +02:00
parent 8b226942fc
commit 05add27e80
3 changed files with 29 additions and 13 deletions

View File

@@ -56,6 +56,10 @@ if (AVCODEC_FOUND AND AVUTIL_FOUND AND SWSCALE_FOUND AND SDL_FOUND)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_SDL) list(APPEND MOONLIGHT_DEFINITIONS HAVE_SDL)
endif() endif()
if (BROADCOM_FOUND OR FREESCALE_FOUND OR CMAKE_BUILD_TYPE MATCHES Debug)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_EMBEDDED)
endif()
list(APPEND SRC_LIST ./src/audio/alsa.c) list(APPEND SRC_LIST ./src/audio/alsa.c)
add_subdirectory(libgamestream) add_subdirectory(libgamestream)

View File

@@ -43,9 +43,13 @@ For a demo see this [video](https://www.youtube.com/watch?v=XRW6O0bSHNw).
quit Quit the application or game being streamed quit Quit the application or game being streamed
help Show this help help Show this help
Streaming options: Global options:
-config <config> Load configuration file -config <config> Load configuration file
-save <config> Save configuration file
Streaming options:
-720 Use 1280x720 resolution (default) -720 Use 1280x720 resolution (default)
-1080 Use 1920x1080 resolution -1080 Use 1920x1080 resolution
-width <width> Horizontal resolution (default 1280) -width <width> Horizontal resolution (default 1280)
@@ -56,10 +60,13 @@ For a demo see this [video](https://www.youtube.com/watch?v=XRW6O0bSHNw).
-packetsize <size> Specify the maximum packetsize in bytes -packetsize <size> Specify the maximum packetsize in bytes
-app <app> Name of app to stream -app <app> Name of app to stream
-nosops Don't allow GFE to modify game settings -nosops Don't allow GFE to modify game settings
-input <device> Use <device> as input. Can be used multiple times
-mapping <file> Use <file> as gamepad mapping configuration file (use before -input)
-audio <device> Use <device> as ALSA audio output device (default sysdefault)
-localaudio Play audio locally -localaudio Play audio locally
-keydir <directory>\tLoad encryption keys from directory
I/O options:
-mapping <file> Use <file> as gamepad mapping configuration file (use before -input)
-input <device> Use <device> as input. Can be used multiple times
-audio <device> Use <device> as ALSA audio output device (default sysdefault)
Use Ctrl+Alt+Shift+Q to exit streaming session Use Ctrl+Alt+Shift+Q to exit streaming session

View File

@@ -96,17 +96,19 @@ static void stream(PSERVER_DATA server, PCONFIGURATION config, enum platform sys
} }
static void help() { static void help() {
printf("Usage: moonlight action [options] host\n\n"); printf("Usage: moonlight [action] (options) [host]\n");
printf(" Actions\n\n"); printf(" moonlight [configfile]\n");
printf("\n Actions\n\n");
printf("\tmap\t\t\tCreate mapping file for gamepad\n"); printf("\tmap\t\t\tCreate mapping file for gamepad\n");
printf("\tpair\t\t\tPair device with computer\n"); printf("\tpair\t\t\tPair device with computer\n");
printf("\tstream\t\t\tStream computer to device\n"); printf("\tstream\t\t\tStream computer to device\n");
printf("\tlist\t\t\tList available games and applications\n"); printf("\tlist\t\t\tList available games and applications\n");
printf("\tquit\t\t\tQuit the application or game being streamed\n"); printf("\tquit\t\t\tQuit the application or game being streamed\n");
printf("\thelp\t\t\tShow this help\n\n"); printf("\thelp\t\t\tShow this help\n");
printf(" Streaming options\n\n"); printf("\n Global Options\n\n");
printf("\t-config <config>\tLoad configuration file\n"); printf("\t-config <config>\tLoad configuration file\n");
printf("\t-save <config>\t\tSave configuration file\n"); printf("\t-save <config>\t\tSave configuration file\n");
printf("\n Streaming options\n\n");
printf("\t-720\t\t\tUse 1280x720 resolution [default]\n"); printf("\t-720\t\t\tUse 1280x720 resolution [default]\n");
printf("\t-1080\t\t\tUse 1920x1080 resolution\n"); printf("\t-1080\t\t\tUse 1920x1080 resolution\n");
printf("\t-width <width>\t\tHorizontal resolution (default 1280)\n"); printf("\t-width <width>\t\tHorizontal resolution (default 1280)\n");
@@ -117,12 +119,15 @@ static void help() {
printf("\t-packetsize <size>\tSpecify the maximum packetsize in bytes\n"); printf("\t-packetsize <size>\tSpecify the maximum packetsize in bytes\n");
printf("\t-app <app>\t\tName of app to stream\n"); printf("\t-app <app>\t\tName of app to stream\n");
printf("\t-nosops\t\t\tDon't allow GFE to modify game settings\n"); printf("\t-nosops\t\t\tDon't allow GFE to modify game settings\n");
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");
printf("\t-keydir <directory>\tLoad encryption keys from directory\n\n"); printf("\t-keydir <directory>\tLoad encryption keys from directory\n");
printf("Use Ctrl+Alt+Shift+Q to exit streaming session\n\n"); #ifdef HAVE_EMBEDDED
printf("\n I/O options\n\n");
printf("\t-mapping <file>\t\tUse <file> as gamepad mapping configuration file (use before -input)\n");
printf("\t-input <device>\t\tUse <device> as input. Can be used multiple times\n");
printf("\t-audio <device>\t\tUse <device> as ALSA audio output device (default sysdefault)\n");
#endif
printf("\nUse Ctrl+Alt+Shift+Q to exit streaming session\n\n");
exit(0); exit(0);
} }