no. I mean, when some hard keys are pressed, there is no KeyDownEvent, nor KeyUpEvent. For exmaple, for Tungsten W, when I pressed the "blue key" (it works as "shift"), there are events, but all nilEvent, not KeyDownEvent. I totally have no idea why they are nilEvent. Maybe that is my emulator's bug?
eric *********** REPLY SEPARATOR *********** On 08/04/2004 at 10:49 AM Vu Pham wrote: >----- Original Message ----- >From: "Eric Yun" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Sent: Thursday, April 08, 2004 10:42 AM >Subject: hard key pressed events--for those palms with hardware keyboard > > >> I set breakpoints in codewarrior to check the event type and data when a >hard key is pressed. Most hard keys will have a keyDownEvent when they are >pressed. For example, the when hard key "a" is pressed, the event type is >KeyDownEvent, and the chr is 'a'. but some hard keys like "Caps", there is >no KeyDownEvent (actually I found there are events, but all events are >nilEvent. Weird!?). I totally have no idea how to capture these events.... >> > >They are implemented into the field modifiers of the keyDownEvent event. >See >the definition of the struct _KeyDownEventType . > >Vu > > > > >> eric >> >> *********** REPLY SEPARATOR *********** >> >> On 07/04/2004 at 3:48 PM Tim Kostka wrote: >> >> >If you want to trap hard key events, you can trap the keyDownEvent. The >> >chr >> >field will contain the value of the key pressed (ie: 'a' or 'A' for the >a >> >key, etc). By doing this, the program would respond the same way to a >> >letter entered into the graffiti area or by a hard key press (of a >letter >> >key). If you want to trap other keys, you can do so the same way, but >you >> >need to find out the chr value for them. You can write a small program >to >> >do this, or use published values depending on the keys you want to trap. >> > >> >-- >> >Tim Kostka >> >http://www.nuprograms.com >> > >> > >> >"Eric Yun" <[EMAIL PROTECTED]> wrote in message >> >news:[EMAIL PROTECTED] >> >hello forum, >> > >> >how can a software identify which hard key is pressed when the user is >> >using >> >tungsten W (there is a hardware keyboard). I searched >> >pluggedin.palmone.com, >> >but I did not find any doc for this topic. >> > >> >Thanks all, >> > >> >Eric >> > >> > >> > >> > >> >-- >> >For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/support/forums/ >> >> >> >> >> -- >> For information on using the Palm Developer Forums, or to unsubscribe, >please see http://www.palmos.com/dev/support/forums/ >> >> > > > >-- >For information on using the Palm Developer Forums, or to unsubscribe, please see >http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
