Richard Coutts a �crit :

> > And how can I check if the keys are released? is there something like a
> > KeyUp event? I tryed with KeyCurrentState, but it was always returning 0.
>
> My understanding is that there's no "Key Up" -- rather, there's repeated key
> downs if the user holds the navigator or a key down.
>
> Rich

In the Palm OS API Ref I see this explanation about the keyHoldEvent:

This event is sent when a hardware key is held for one second.
(Note that the one-second timing may be modified by a Palm OS
licensee.)

Unlike keyDownEvent, keyHoldEvent is sent for characters
corresponding to hardware buttons only. If the device contains a
hardware keyboard, holding a key results in a keyDownEvent and
then, one second later, a keyHoldEvent, and, ultimately, a
keyUpEvent. If the user is using a software keyboard, the
application receives only the keyDownEvent.

Only one keyHoldEvent is sent for each press-and-hold of the key.
You do not get a keyHoldEvent for each additional second that the
key is held.

A keyHoldEvent is sent only for the most recently pressed key. For
instance, if a key is pressed and held, and then another key is
pressed within a second and before the first key is released, the
following happens: a keyHoldEvent is not sent for the first key, but
a keyHoldEvent is sent for the second key if it is held for a full
second. Note that a keyUpEvent will be generated for both the first
and second key as each key is released.


--
Luc Le Blanc


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to