Fw: Adding keys to VDR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)) {
          cRemote::PutMacro(key);
          key = kNone;
       }
       break;

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...)


Cheers,

Udo


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux