Fw: [vdr] Adding keys to VDR

Udo Richter udo_richter at gmx.de
Mon Jul 18 14:08:14 CEST 2005

Reinhard Nissl wrote:
> Have a look into vdr.c (~ line 707) for this line:
>   case kUser1 ... kUser9: cRemote::PutMacro(key); key = kNone; break;
> So the user keys just get translated into the defined macros and are 
> afterwards deleted (= set to kNone).

This would be a nice extension of the current implementation:

    case kUser1 ... kUser9:
       if (KeyMacros.Get(key)) {
          key = kNone;

eg. if there is no macro assigned to that key, keep the key code for 
plugins and other extensions.

(the code is not tested, don't blame be if it doesn't work...)



More information about the vdr mailing list