diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-03-31 11:03:04 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-03-31 12:15:40 +0200 |
commit | c8fd9e50e47838bbdb0dc5e0b974091312cb8833 (patch) | |
tree | 6ba67acd656b75ceeefe9d3bb8bc670b5fd94c4e /core/input/input.c | |
parent | 014298522875f7f41d10eb3e41fcd97926cdedee (diff) | |
download | mpv-c8fd9e50e47838bbdb0dc5e0b974091312cb8833.tar.bz2 mpv-c8fd9e50e47838bbdb0dc5e0b974091312cb8833.tar.xz |
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/
Diffstat (limited to 'core/input/input.c')
-rw-r--r-- | core/input/input.c | 22 |
1 files changed, 0 insertions, 22 deletions
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__ |