From c8fd9e50e47838bbdb0dc5e0b974091312cb8833 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 31 Mar 2013 11:03:04 +0200 Subject: remove Apple Remote related code The OSX part of the Apple Remote was unmaintained for a long time and was not working anymore. I tried to update the cookies to what the current versions of OS X expect without much luck. I decided to remove it since Apple is not including the IR receiver anymore in new hardware and it's clear that wifi based remotes are the way to go. A third party iOS app should be used in it's place. In the future we could look into having a dedicated iOS Remote Control app like VLC and XBMC do. The Linux side (`appleir.c`) was relatively tidy but it looks like LIRC can be configured to work with any version of Apple Remote [1] and is more maintained. [1] LIRC Apple Remote configs: http://lirc.sourceforge.net/remotes/apple/ --- core/input/input.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'core/input/input.c') diff --git a/core/input/input.c b/core/input/input.c index 142740706a..275ab586b6 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -540,7 +540,6 @@ static const m_option_t mp_input_opts[] = { OPT_FLAG("joystick", input.use_joystick, CONF_GLOBAL), OPT_FLAG("lirc", input.use_lirc, CONF_GLOBAL), OPT_FLAG("lircc", input.use_lircc, CONF_GLOBAL), - OPT_FLAG("ar", input.use_ar, CONF_GLOBAL), { NULL, NULL, 0, 0, 0, 0, NULL} }; @@ -1779,27 +1778,6 @@ struct input_ctx *mp_input_init(struct input_conf *input_conf, } #endif -#ifdef CONFIG_APPLE_REMOTE - if (input_conf->use_ar) { - if (mp_input_ar_init() < 0) - mp_tmsg(MSGT_INPUT, MSGL_ERR, "Can't init Apple Remote.\n"); - else - mp_input_add_key_fd(ictx, -1, 0, mp_input_ar_read, - mp_input_ar_close, NULL); - } -#endif - -#ifdef CONFIG_APPLE_IR - if (input_conf->use_ar) { - int fd = mp_input_appleir_init(input_conf->ar_dev); - if (fd < 0) - mp_tmsg(MSGT_INPUT, MSGL_ERR, "Can't init Apple Remote.\n"); - else - mp_input_add_key_fd(ictx, fd, 1, mp_input_appleir_read, - close, NULL); - } -#endif - if (input_conf->in_file) { int mode = O_RDONLY; #ifndef __MINGW32__ -- cgit v1.2.3