From ca353fcf9268fc4630143db21bd1b3e7c806b889 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 9 Oct 2014 21:02:47 +0200 Subject: libmpv/cocoa: make global events work and get rid of is_cplayer After @frau's split of macosx_events from macosx_application, `is_cplayer' is not needed anymore. At the moment only global events such as Media Keys and Apple Remote work, because the VO-level ones were hardcoded to be disabled. (that will be fix in a later commit ). --- DOCS/client_api_examples/cocoabasic.m | 3 +++ DOCS/man/options.rst | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'DOCS') diff --git a/DOCS/client_api_examples/cocoabasic.m b/DOCS/client_api_examples/cocoabasic.m index 3324f13845..35637f0a9f 100644 --- a/DOCS/client_api_examples/cocoabasic.m +++ b/DOCS/client_api_examples/cocoabasic.m @@ -90,6 +90,9 @@ static void wakeup(void *); // NOTE: Interaction with the window seems to be broken for now. check_error(mpv_set_option_string(mpv, "input-default-bindings", "yes")); + // for testing! + check_error(mpv_set_option_string(mpv, "input-media-keys", "yes")); + check_error(mpv_initialize(mpv)); // Register to be woken up whenever mpv generates new events. diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 0ef720c438..09e5b0b520 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2175,8 +2175,9 @@ Input or intend to read from stdin later on via the loadfile or loadlist slave commands. -``--input-appleremote``, ``--no-input-appleremote`` - Enable/disable AppleIR remote support. Enabled by default. +``--input-appleremote=`` + (OS X only) + Enable/disable Apple Remote support. Enabled by default (except for libmpv). ``--input-cursor``, ``--no-input-cursor`` Permit mpv to receive pointer events reported by the video output @@ -2196,8 +2197,9 @@ Input (LIRC only) Specifies a configuration file for LIRC (default: ``~/.lircrc``). -``--input-media-keys``, ``--no-input-media-keys`` - OS X only: Enabled by default. Enables/disable media keys support. +``--input-media-keys=`` + (OS X only) + Enable/disable media keys support. Enabled by default (except for libmpv). ``--input-right-alt-gr``, ``--no-input-right-alt-gr`` (Cocoa and Windows only) -- cgit v1.2.3