mt2523 Which key event SDK keypad driver support?
时间:10-02
整理:3721RD
点击:
SDK keypad driver support press, longpress ,repeat and release event.
typedef enum {
HAL_KEYPAD_KEY_RELEASE = 0, /**< A key is released. */
HAL_KEYPAD_KEY_PRESS = 1, /**< A key is pressed. */
HAL_KEYPAD_KEY_LONG_PRESS = 2, /**< A key is long pressed. */
HAL_KEYPAD_KEY_REPEAT = 3, /**< A key is repeat pressed. */
HAL_KEYPAD_KEY_PMU_LONG_PRESS = 4 /**< PMU hardware powerkey is long
pressed. */
} hal_keypad_key_state_t;
PS:HAL_KEYPAD_KEY_PMU_LONG_PRESS is for the powerkey use.
typedef enum {
HAL_KEYPAD_KEY_RELEASE = 0, /**< A key is released. */
HAL_KEYPAD_KEY_PRESS = 1, /**< A key is pressed. */
HAL_KEYPAD_KEY_LONG_PRESS = 2, /**< A key is long pressed. */
HAL_KEYPAD_KEY_REPEAT = 3, /**< A key is repeat pressed. */
HAL_KEYPAD_KEY_PMU_LONG_PRESS = 4 /**< PMU hardware powerkey is long
pressed. */
} hal_keypad_key_state_t;
PS:HAL_KEYPAD_KEY_PMU_LONG_PRESS is for the powerkey use.
