summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-04-30 12:53:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-04-30 12:53:35 +0200
commit6e93ac95258aeb37b6b642484ccaa37e091b84ab (patch)
tree2f967a2c89c9b9910ab5896f8d538f73e7a6613d /remote.c
parentd8264ee1b2c6331bbf5979e6e8dff1e2c00d95bf (diff)
downloadvdr-6e93ac95258aeb37b6b642484ccaa37e091b84ab.tar.gz
vdr-6e93ac95258aeb37b6b642484ccaa37e091b84ab.tar.bz2
Implemented the SVDRP command REMO
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index bbc73787..c7eb7fb9 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.56 2007/02/24 13:23:12 kls Exp $
+ * $Id: remote.c 1.57 2007/04/30 12:27:56 kls Exp $
*/
#include "remote.h"
@@ -31,6 +31,7 @@ cMutex cRemote::mutex;
cCondVar cRemote::keyPressed;
const char *cRemote::keyMacroPlugin = NULL;
const char *cRemote::callPlugin = NULL;
+bool cRemote::enabled = true;
time_t cRemote::lastActivity = 0;
cRemote::cRemote(const char *Name)
@@ -185,7 +186,7 @@ eKeys cRemote::Get(int WaitMs, char **UnknownCode)
if ((k & k_Repeat) != 0)
repeatTimeout.Set(REPEATTIMEOUT);
lastActivity = time(NULL);
- return k;
+ return enabled ? k : kNone;
}
else if (!WaitMs || !keyPressed.TimedWait(mutex, WaitMs) && repeatTimeout.TimedOut())
return kNone;