diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-29 16:23:47 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-29 16:23:47 +0200 |
commit | 8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1 (patch) | |
tree | 76803e0fce2cf26a263144ec86d02d12b6adf14a /remote.c | |
parent | 0f2099b4f2528f1aa9846d889e0ccde47f5eb1aa (diff) | |
download | vdr-8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1.tar.gz vdr-8bb3fffa5e370d208e034e5f798c1bd7ac9fc1c1.tar.bz2 |
Bugfix in PC keyboard learning process
Diffstat (limited to 'remote.c')
-rw-r--r-- | remote.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 *) |