From 61182350c0109c58f01aa5f7ecbaa4c92d06fa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mon=20ou=C3=AFe?= Date: Fri, 1 Dec 2023 11:26:34 +0100 Subject: Add --overlay-mouse option as a counterpart to --no-overlay-mouse --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index a25be5c..36556ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -516,7 +516,7 @@ void dprintf( const char *fmt, ... ) } static void usage() { - fprintf(stderr, "usage: vr-video-player [--sphere|--sphere360|--flat|--plane] [--left-right|--right-left] [--stretch|--no-stretch] [--zoom zoom-level] [--cursor-scale scale] [--cursor-wrap|--no-cursor-wrap] [--follow-focused|--video video|] [--use-system-mpv-config] [--mpv-profile ] [--free-camera] [--reduce-flicker] [--overlay] [--overlay-key ] [--no-overlay-mouse]\n"); + fprintf(stderr, "usage: vr-video-player [--sphere|--sphere360|--flat|--plane] [--left-right|--right-left] [--stretch|--no-stretch] [--zoom zoom-level] [--cursor-scale scale] [--cursor-wrap|--no-cursor-wrap] [--follow-focused|--video video|] [--use-system-mpv-config] [--mpv-profile ] [--free-camera] [--reduce-flicker] [--overlay] [--overlay-key ] [--overlay-mouse|--no-overlay-mouse]\n"); fprintf(stderr, "\n"); fprintf(stderr, "OPTIONS\n"); fprintf(stderr, " --sphere View the window as a stereoscopic 180 degrees screen (half sphere). The view will be attached to your head in vr. This is recommended for 180 degrees videos. This is the default value\n"); @@ -539,6 +539,7 @@ static void usage() { fprintf(stderr, " --mpv-profile Which mpv profile to use. Only applicable when using --video option. Optional, defaults to \"gpu-hq\"\n"); fprintf(stderr, " --overlay Run as an OpenVR overlay rather than a standalone application.\n"); fprintf(stderr, " --overlay-key Name used to identify the OpenVR overlay. Defaults to \"vr-video-player\".\n"); + fprintf(stderr, " --overlay-mouse Enable the translation of VR events into mouse events when running as an overlay. This is the default value.\n"); fprintf(stderr, " --no-overlay-mouse Disable the translation of VR events into mouse events when running as an overlay.\n"); fprintf(stderr, " window_id The X11 window id of the window to view in vr. Either this option, --follow-focused or --video should be used\n"); fprintf(stderr, "\n"); @@ -727,6 +728,8 @@ CMainApplication::CMainApplication( int argc, char *argv[] ) } else if(strcmp(argv[i], "--overlay-key") == 0 && i < argc - 1) { overlay_key = argv[i + 1]; ++i; + } else if(strcmp(argv[i], "--overlay-mouse") == 0) { + overlay_mouse_controls = true; } else if(strcmp(argv[i], "--no-overlay-mouse") == 0) { overlay_mouse_controls = false; } -- cgit v1.2.3