summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-05-01 14:48:54 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-05-01 14:48:54 +0200
commit5ddf78ade15ac4048ae6ec587078f1c2e68437d8 (patch)
tree3410e9fb654f7cbc511d89925b5324ec122f39ba /remote.c
parentcfbf1eb98f319145e2c8bbcf7ee679cf5cf21bc9 (diff)
downloadvdr-5ddf78ade15ac4048ae6ec587078f1c2e68437d8.tar.gz
vdr-5ddf78ade15ac4048ae6ec587078f1c2e68437d8.tar.bz2
Fixed paging through lists with repeated Left/Right keys
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index 29149e9d..80d77ed3 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.36 2002/12/15 15:58:59 kls Exp $
+ * $Id: remote.c 1.37 2003/05/01 14:44:55 kls Exp $
*/
#include "remote.h"
@@ -123,6 +123,11 @@ bool cRemote::Put(const char *Code, bool Repeat, bool Release)
return false;
}
+bool cRemote::HasKeys(void)
+{
+ return in != out && !(keys[out] & k_Repeat);
+}
+
eKeys cRemote::Get(int WaitMs, char **UnknownCode)
{
for (;;) {