yes.. it is possible..

  you need to check the "status" of the keys using a nilEvent
  (just like writing an animation engine).

  set your timeout to 0, and then check the key status with
  the method

    KeyCurrentState()

  read the docs on the way this method returns values.. but
  remember, pressing a hardkey does not trigger a catchable
  event (like an event handling event).. i wanted this, then
  i had to catch it myself - with nilEvents.

  hope this helps.

az.
--
Aaron Ardiri 
Lecturer                       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 352 8192           A/H: +46 26 10 16 11

On Wed, 9 Jun 1999, Sudipta Ghose wrote:

> Hi,
> 
> I am writing an app, which allows the user to map the hardware buttons to my
> app. I would like to map different buttons to diff. forms in my app. Say,
> the datebook button maps to form A, and the addressbook button maps to form
> B. Is there any way to detect which button has launched my app? Is it
> possible?
> 
> Thanks.
> 
> -Sugho-
> 
> 

Reply via email to