> I need to know when the user turns on/off the backlight while my application
> is running. According to hardware.h, the virtual key backlightChr is sent
> when a change of backlightstate is requested.
> 
> I tried to catch this virtual key in my formeventhandler, but I never
> recieved it. After a while, i figured out that the event is swallowed by
> SysHandleEvent. If I put the call to my virtualkeysHandler in the
> AppEventLoop before SysHandleEvent (see code below), I get the
> backlightChr-event. I'd rather put the call where it should be, in the
> formeventhandler.
> 
> What do I need to do to prevent SysHandleEvent from swallowing the
> backlightChr-event?

  this is ok.. but what you should do is call it something like:

   PreSystemApplicationHandleEvent()

  it is not bad to do this at all.. in fact.. for what you are doing
  it may be required :) just make sure you dont trap something you 
  should not be doing :>>
 
az
--
Aaron Ardiri 
Java Certified Programmer      http://www.hig.se/~ardiri/
University-College i G�vle     mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN       
Tel: +46 26 64 87 38           Fax: +46 26 64 87 88
Mob: +46 70 656 1143           A/H: +46 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html.

Reply via email to