summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-31 14:05:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-31 14:05:55 +0100
commitc88e65b6385a9c72778ea46fe4c4c805976c7b96 (patch)
tree488f1e0bde381ad8d24219920b7875e4c5ab291c /remote.c
parentbd62ca6abc61827dd75962e952783acf83565949 (diff)
downloadvdr-c88e65b6385a9c72778ea46fe4c4c805976c7b96.tar.gz
vdr-c88e65b6385a9c72778ea46fe4c4c805976c7b96.tar.bz2
Fixed handling key codes that start with 0x1B in the KBD remote control code
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/remote.c b/remote.c
index b435bc46..2d382e0b 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.40 2004/05/28 14:19:52 kls Exp $
+ * $Id: remote.c 1.41 2004/10/31 14:05:12 kls Exp $
*/
#include "remote.h"
@@ -265,7 +265,6 @@ void cKbdRemote::Action(void)
if (Poller.Poll(100)) {
uint64 Command = 0;
uint i = 0;
- int t0 = time_ms();
while (active && i < sizeof(Command)) {
uchar ch;
int r = read(STDIN_FILENO, &ch, 1);
@@ -280,7 +279,7 @@ void cKbdRemote::Action(void)
// of their codes, so we'll need to wait some 100ms to see if
// there is more coming up - or whether this really is the 'ESC'
// key (if somebody knows how to clean this up, please let me know):
- if (Command == 0x1B && time_ms() - t0 < 100)
+ if (Command == 0x1B && Poller.Poll(100))
continue;
if (Command) {
if (rawMode || !Put(Command)) {