From b16437e7848218025986e87eb972b742dd7c958b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 3 Feb 2013 15:58:46 +0100 Subject: New options 'Setup/Miscellaneous/Remote control repeat delay' and 'Setup/Miscellaneous/Remote control repeat delta' --- config.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index 8c7b9d1d..3335dfc2 100644 --- a/config.c +++ b/config.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 2.32 2013/01/17 14:50:51 kls Exp $ + * $Id: config.c 2.33 2013/02/02 13:44:33 kls Exp $ */ #include "config.h" @@ -408,6 +408,8 @@ cSetup::cSetup(void) SVDRPTimeout = 300; ZapTimeout = 3; ChannelEntryTimeout = 1000; + RcRepeatDelay = 300; + RcRepeatDelta = 100; DefaultPriority = 50; DefaultLifetime = MAXLIFETIME; PauseKeyHandling = 2; @@ -610,6 +612,8 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "SVDRPTimeout")) SVDRPTimeout = atoi(Value); else if (!strcasecmp(Name, "ZapTimeout")) ZapTimeout = atoi(Value); else if (!strcasecmp(Name, "ChannelEntryTimeout")) ChannelEntryTimeout= atoi(Value); + else if (!strcasecmp(Name, "RcRepeatDelay")) RcRepeatDelay = atoi(Value); + else if (!strcasecmp(Name, "RcRepeatDelta")) RcRepeatDelta = atoi(Value); else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value); else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value); else if (!strcasecmp(Name, "PauseKeyHandling")) PauseKeyHandling = atoi(Value); @@ -716,6 +720,8 @@ bool cSetup::Save(void) Store("SVDRPTimeout", SVDRPTimeout); Store("ZapTimeout", ZapTimeout); Store("ChannelEntryTimeout",ChannelEntryTimeout); + Store("RcRepeatDelay", RcRepeatDelay); + Store("RcRepeatDelta", RcRepeatDelta); Store("DefaultPriority", DefaultPriority); Store("DefaultLifetime", DefaultLifetime); Store("PauseKeyHandling", PauseKeyHandling); -- cgit v1.2.3