diff options
Diffstat (limited to 'input/input.c')
-rw-r--r-- | input/input.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 1ddfc25f7e..110d7a0fca 100644 --- a/input/input.c +++ b/input/input.c @@ -25,6 +25,10 @@ #include "joystick.h" #endif +#ifdef HAVE_LIRC +#include "lirc.h" +#endif + // If the args field is not NULL, the command will only be passed if // an argument exist. @@ -793,6 +797,23 @@ mp_input_init(void) { } #endif +#ifdef HAVE_LIRC + { + int fd = mp_input_lirc_init(); + if(fd > 0) + mp_input_add_cmd_fd(fd,1,NULL,(mp_close_func_t)close); + } +#endif + +} + +void +mp_input_uninit(void) { + +#ifdef HAVE_LIRC + mp_input_lirc_uninit(); +#endif + } #endif /* HAVE_NEW_INPUT */ |