Catching additional hardware keys

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have to write an application for a Qtek 2020 (or MDA 2, XDA 2, ...). This
pda has additional hardware buttons for volume control and phone. I want to
catch these buttons as like as I catch the other buttons for home, calender,
....

Does somebody know how to do this?

Grettings,
Cyberdot
 
You can use the same method to capture these buttons as you can with the
standard app buttons, I assume you are using the RegisterHotKey API call.

What differs is that some of the app buttons (Calendar etc) have the Windows
key modifier, and others dont e.g.

Volume Up - 0x75 Modifier - 0
Volume Down - 0x76 Modifier - 0
Answer - 0x72 Modifier - 0
Hangup - 0x73 Modifier - 0

Registering these keys with your app will of course disable them from being
used with the phone app after your application exits so they should only be
used in the case of a kiosk type application where you intend to take
control of the entire device, not within a regular end-user application.

Peter
 
Back
Top