The CAM menu now stays open as long as it is automatically updated

This commit is contained in:
Klaus Schmidinger
2008-02-23 14:40:58 +01:00
parent edfe582941
commit 300d402663
4 changed files with 16 additions and 4 deletions

View File

@@ -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;