summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-11-01 10:53:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-11-01 10:53:07 +0100
commitc1a5a7d50c4a45b3d3d65717c788e1925463a61e (patch)
tree9ba01bdc6f892e17da20ce08932a2b0fd74c7814 /remote.c
parentfd3e819ba808e98d68737cf45583d70fa0588e51 (diff)
downloadvdr-c1a5a7d50c4a45b3d3d65717c788e1925463a61e.tar.gz
vdr-c1a5a7d50c4a45b3d3d65717c788e1925463a61e.tar.bz2
Only accepting key presses from the current remote control when learning
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index 6078c26b..415e37ea 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.30 2002/10/27 15:15:58 kls Exp $
+ * $Id: remote.c 1.31 2002/11/01 10:50:13 kls Exp $
*/
#include "remote.h"
@@ -27,7 +27,7 @@
eKeys cRemote::keys[MaxKeys];
int cRemote::in = 0;
int cRemote::out = 0;
-bool cRemote::learning = false;
+cRemote *cRemote::learning = NULL;
char *cRemote::unknownCode = NULL;
cMutex cRemote::mutex;
cCondVar cRemote::keyPressed;
@@ -109,6 +109,8 @@ bool cRemote::Put(uint64 Code, bool Repeat, bool Release)
bool cRemote::Put(const char *Code, bool Repeat, bool Release)
{
+ if (learning && this != learning)
+ return false;
eKeys Key = Keys.Get(Name(), Code);
if (Key != kNone) {
if (Repeat)