i'm hooking sysNotifyEventDequeuedEvent() to receive hardkey presses.
the problem i'm having are:
1. i get two events for the same key press
2. the event never seems to go away when i set the handled flag.
here is you my code:
case sysNotifyEventDequeuedEvent:
{
SysEventType *evt = (SysEventType *)((SysNotifyParamType
*)cmdPBP)->notifyDetailsP;
switch(EndianSwap16(evt->eType))
{
case keyDownEvent:
{
if ((EndianSwap16(evt->data.keyDown.chr) == vchrHard2))
{
((SysNotifyParamType *)cmdPBP)->handled = true; // doesnt see
to work. the OS still get the event
}
break;
}
}
}
thanks
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/