I've been trying to add 2 User keys as a modification to Richard's patch below.
Instead of using 1 & 3 to skip 10 seconds, want to use User1 and User2 +#define kEditJumpBack kUser1 +#define kEditJumpForward kUser2
why doesn't this work??
Reinhard Nissl wrote:
Personally, I've added that the key 1/3 skips back/forward 10 seconds. But the two keys are intended to be used differently. That's way my patch didn't make it into VDR yet. --- ../vdr-1.3.25-orig/keys.h 2004-12-27 12:10:59.000000000 +0100 +++ keys.h 2005-01-09 18:24:11.000000000 +0100 @@ -65,6 +65,8 @@ enum eKeys { // "Up" and "Down" must be #define kMarkJumpForward k9 #define kEditCut k2 #define kEditTest k8 +#define kEditJumpBack k1 +#define kEditJumpForward k3
#define RAWKEY(k) (eKeys((k) & ~k_Flags)) #define ISRAWKEY(k) ((k) != kNone && ((k) & k_Flags) == 0) --- ../vdr-1.3.25-orig/menu.c 2005-05-16 15:59:03.000000000 +0200 +++ menu.c 2005-05-29 18:52:42.000000000 +0200 @@ -3723,6 +3742,10 @@ eOSState cReplayControl::ProcessKey(eKey case kMarkMoveForward: MarkMove(true); break; case kEditCut: EditCut(); break; case kEditTest: EditTest(); break;
case kEditJumpBack|k_Repeat:
case kEditJumpBack: SkipSeconds(-10); break;
case kEditJumpForward|k_Repeat:
case kEditJumpForward: SkipSeconds( 10); break; default: { displayFrames = DisplayedFrames; switch (Key) {