.genkpevent Property

Function:

Defines whether you will be receiving keypad events through the on_kp event or kp.getkey method.

Type:

Enum (no_yes, byte)

Value Range:

0 — NO: The kp. object will not generate on_kp events. Use kp.getkey to receive keypad events.

1 — YES (default): The kp. object will generate an on_kp event for each keypad event detected; kp.getkey will not return keypad events.

See Also:

Receiving Keypad Events Through on_kp Events, Receiving Keypad Events Using the kp.getkey Method