summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
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;