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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
chinnasamyPosted Jan 7, 2009, 7:59 AM
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 PerssonPosted Jan 7, 2009, 8:12 AM
Thank you very much! Not easy to find an answer to this.
I'll test it and perhaps get back with more questions.