summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-07-29 16:23:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-07-29 16:23:47 +0200
commit8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1 (patch)
tree76803e0fce2cf26a263144ec86d02d12b6adf14a /remote.c
parent0f2099b4f2528f1aa9846d889e0ccde47f5eb1aa (diff)
downloadvdr-8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1.tar.gz
vdr-8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1.tar.bz2
Bugfix in PC keyboard learning process
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index 931cfd33..0476962c 100644
--- a/remote.c
+++ b/remote.c
@@ -6,7 +6,7 @@
*
* Ported to LIRC by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: remote.c 1.10 2000/07/15 16:34:35 kls Exp $
+ * $Id: remote.c 1.11 2000/07/29 16:23:47 kls Exp $
*/
#include "remote.h"
@@ -71,7 +71,11 @@ void cRcIoKBD::Flush(int WaitSeconds)
bool cRcIoKBD::InputAvailable(bool Wait)
{
timeout(Wait ? 1000 : 10);
- return true;//XXX
+ int ch = getch();
+ if (ch == ERR)
+ return false;
+ ungetch(ch);
+ return true;
}
bool cRcIoKBD::GetCommand(unsigned int *Command, unsigned short *)