diff options
author | phintuka <phintuka> | 2006-12-19 08:49:48 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-12-19 08:49:48 +0000 |
commit | 8701aeff130ad0b7d4df4e580f70f260b6d875af (patch) | |
tree | 69ef2080f502fa1b207fffc9d02a5bbd1956e15b | |
parent | 99ae7ee155f0654c6771a6229b7c41595e7374b3 (diff) | |
download | xineliboutput-8701aeff130ad0b7d4df4e580f70f260b6d875af.tar.gz xineliboutput-8701aeff130ad0b7d4df4e580f70f260b6d875af.tar.bz2 |
Added simple key repeat emulation if lircd does not regonize
repeated keys automatically (command-line option "--lirc=/dev/lircd,repeatemu")
-rw-r--r-- | xine_frontend_main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xine_frontend_main.c b/xine_frontend_main.c index 72ff4128..b1bc163b 100644 --- a/xine_frontend_main.c +++ b/xine_frontend_main.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_main.c,v 1.17 2006-12-15 15:26:40 phintuka Exp $ + * $Id: xine_frontend_main.c,v 1.18 2006-12-19 08:49:48 phintuka Exp $ * */ @@ -324,7 +324,12 @@ int main(int argc, char *argv[]) printf("Post plugins: %s\n", static_post_plugins); break; case 'L': lirc_device_name = optarg ? : strdup("/dev/lircd"); - printf("LIRC device: %s\n", lirc_device_name); + if(strstr((char*)lirc_device_name, ",repeatemu")) { + *strstr((char*)lirc_device_name, ",repeatemu") = 0; + lirc_repeat_emu = 1; + } + printf("LIRC device: %s%s\n", lirc_device_name, + lirc_repeat_emu?", emulating key repeat":""); break; case 'v': verbose_xine_log = 1; SysLogLevel = 3; |