|
.Enabled Property |
Top Previous Next |
Function: |
Enables or disables the keypad. |
Type: |
Enum (no_yes, byte) |
Value Range: |
0- NO (default): The keypad is disabled. 1- YES: The keypad is enabled. |
See Also: |
Details
The keypad matrix is being scanned and your application receives the on_kp and on_kp_overflow events only when the keypad is enabled (kp.enabled= 1- YES).
The following properties can be changed only when the keypad is disabled (kp.enabled= 0- NO): kp.autodisablecodes, kp.longreleasedelay, kp.longpressdelay, kp.pressdelay, kp.repeatdelay, kp.returnlinesmapping, kp.scanlinesmapping.
The keypad will be auto-disabled if an overflow is detected (see on_kp_overflow event), or if one of the conditions for automatic keypad disablement is met (see kp.autodisablecodes).
Every time the keypad is enabled, each key's state is set to 0- PL_KP_EVENT_LONGRELEASED and the keypad event buffer is cleared.