Hi! I'm trying to develop a game for the HTC Touch Pro.
I want to use the hardwarekeyboard so you can use for example a ctrl key to shoot etc. How can I do this using Windows mobile 6?
Hi! I'm trying to develop a game for the HTC Touch Pro.
I want to use the hardwarekeyboard so you can use for example a ctrl key to shoot etc. How can I do this using Windows mobile 6?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
chinnasamy44 reputationPosted Jan 7, 2009, 2:59 AM EST
those Methods available in coredll.dll , the method is SetWindowsHookEx(), By using public delegate int HookProc(int code, IntPtr wParam, IntPtr lParam) and public delegate void HookEventHandler(HookEventArgs e, KeyBoardInfo keyBoardInfo) we may assign some user defined methods to invoke our own methods while the hardware key press happens.
* Above clue is not enough to start working on this, You should get some help from net how to use hook listeners, and how to ignore the default behavior of the buttons, so you may search in net like "Hook Event Handling", you may get some samples to go ahead.
good luck,
chinnasamy
Lars Persson91 reputationPosted Jan 7, 2009, 3:12 AM EST
Thank you very much! Not easy to find an answer to this.
I'll test it and perhaps get back with more questions.