494
Platforms
©2000-2008 Tibbo Technology Inc.
generated once the key transitions into the "longreleased" state.
This property can only be changed when the keypad is disabled (
= 0-
NO). Setting the property to 0 means that the key will never transition into the
"longreleased" state.
On_kp Event
Function:
Generated whenever a key transitions to another state.
Declaration:
on_kp(key_event as pl_kp_event_codes, key_code as
byte)
See Also:
,
Part
Description
key_event
0- PL_KP_EVENT_LONGRELEASED: The key has
transitioned into the "longreleased" state.
1- PL_KP_EVENT_RELEASED: The key has transitioned into
the "released" state.
2- PL_KP_EVENT_PRESSED: The key has transitioned into
the "pressed" state.
3- PL_KP_EVENT_LONGPRESSED: The key has transitioned
into the "longpressed" state.
4- PL_KP_EVENT_REPEATPRESSED: Auto-repeat for the
key.
key_code
Key code (byte). Bits 7-4 of this code represent scan line
number, bits 3-0 -- return line number.
Details
Pressing and releasing any key on the keypad can generate up to five different
events, as explained in
. Scan lines and return lines
are numbered as they are listed in
and
.
This event can only be generated when the keypad is enabled (
= 1-
YES).
On_kp_overflow Event
Function:
Indicates that the keypad buffer has overflown and some
key events may have been lost.
Declaration:
on_kp_overflow
See Also:
Details
492
489
494
486
496
497
492
489