Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: ProcessKey help
Maynard Cedric wrote:
>
> Hi all,
>
> I'm still trying to make a plugin and I've now problem with the ProcessKey
> I've declare a cMenuEditStrItem and, as usual, the Red button is assign to
> "ABC/abc"
> I've assign another function for the Red Button within my cOsdMenu page
> (with the ProcessKey function) but, when I press the Red Button while
> editing my cMenuEditStrItem to get caps, my plugin also launch the Red
> button function that I've assigned with the ProcessKey of the cOsdMenu...
> I'm sure there is a way to prevent this (maybe an eOSState or something
> else) but I was unable to find it...
Only process the keypress if cOsdMenu::ProcessKey() returns osUnknown, as in
eOSState cMyMenu::ProcessKey(eKeys Key)
{
eOSState state = cOsdMenu::ProcessKey(Key);
if (state == osUnknown) {
// my stuff
}
}
Klaus
Home |
Main Index |
Thread Index