mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The CAM menu now stays open as long as it is automatically updated
This commit is contained in:
9
remote.c
9
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;
|
||||
|
Reference in New Issue
Block a user