From 8a6ee7fe947bb01a49beb38152cedb1e1b206ed2 Mon Sep 17 00:00:00 2001 From: der richter Date: Sat, 16 Nov 2019 16:54:07 +0100 Subject: mac: remove Apple Remote support the Apple Remote has long been deprecated and abandoned by Apple. current macs don't come with support for it anymore. support might be re-added with the next commit. --- input/input.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'input/input.c') diff --git a/input/input.c b/input/input.c index 084a61a2eb..1bc8e303f6 100644 --- a/input/input.c +++ b/input/input.c @@ -196,14 +196,14 @@ const struct m_sub_options input_config = { OPT_FLAG("input-cursor", enable_mouse_movements, 0), OPT_FLAG("input-vo-keyboard", vo_key_input, 0), OPT_FLAG("input-media-keys", use_media_keys, 0), -#if HAVE_COCOA - OPT_FLAG("input-appleremote", use_appleremote, 0), -#endif #if HAVE_SDL2_GAMEPAD OPT_FLAG("input-gamepad", use_gamepad, 0), #endif OPT_FLAG("window-dragging", allow_win_drag, 0), OPT_REPLACED("input-x11-keyboard", "input-vo-keyboard"), +#if HAVE_COCOA + OPT_REMOVED("input-appleremote", "replaced by MediaPlayer support"), +#endif {0} }, .size = sizeof(struct input_opts), @@ -215,9 +215,6 @@ const struct m_sub_options input_config = { .use_alt_gr = 1, .enable_mouse_movements = 1, .use_media_keys = 1, -#if HAVE_COCOA - .use_appleremote = 1, -#endif .default_bindings = 1, .vo_key_input = 1, .allow_win_drag = 1, @@ -1335,15 +1332,6 @@ static void reload_opts(struct input_ctx *ictx, bool shutdown) #if HAVE_COCOA struct input_opts *opts = ictx->opts; - if (ictx->using_ar != (opts->use_appleremote && !shutdown)) { - ictx->using_ar = !ictx->using_ar; - if (ictx->using_ar) { - cocoa_init_apple_remote(); - } else { - cocoa_uninit_apple_remote(); - } - } - if (ictx->using_cocoa_media_keys != (opts->use_media_keys && !shutdown)) { ictx->using_cocoa_media_keys = !ictx->using_cocoa_media_keys; if (ictx->using_cocoa_media_keys) { -- cgit v1.2.3