summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-23 14:40:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-23 14:40:58 +0100
commit300d402663e3378d3710b40e29c79a1cc4f4c262 (patch)
tree42dabe052b9e8f4b56322e1fb15660e0c0224b18 /remote.c
parentedfe5829417bea8879bd2e45892b4465ea69b6eb (diff)
downloadvdr-300d402663e3378d3710b40e29c79a1cc4f4c262.tar.gz
vdr-300d402663e3378d3710b40e29c79a1cc4f4c262.tar.bz2
The CAM menu now stays open as long as it is automatically updated
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index c20647d3..733ae31c 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.58 2008/02/22 15:34:08 kls Exp $
+ * $Id: remote.c 1.59 2008/02/23 14:14:46 kls Exp $
*/
#include "remote.h"
@@ -185,7 +185,7 @@ eKeys cRemote::Get(int WaitMs, char **UnknownCode)
out = 0;
if ((k & k_Repeat) != 0)
repeatTimeout.Set(REPEATTIMEOUT);
- lastActivity = time(NULL);
+ TriggerLastActivity();
return enabled ? k : kNone;
}
else if (!WaitMs || !keyPressed.TimedWait(mutex, WaitMs) && repeatTimeout.TimedOut())
@@ -198,6 +198,11 @@ eKeys cRemote::Get(int WaitMs, char **UnknownCode)
}
}
+void cRemote::TriggerLastActivity(void)
+{
+ lastActivity = time(NULL);
+}
+
// --- cRemotes --------------------------------------------------------------
cRemotes Remotes;