/* Get the last key of an input device (for LV_INDEV_TYPE_KEYPAD)  */
uint32_t lv_indev_get_key(const lv_indev_t *indev)
/* Get the last key of an input device (for LV_INDEV_TYPE_KEYPAD)  */
uint32_t lv_indev_get_key(const lv_indev_t *indev)
{
    if(indev->driver.type != LV_INDEV_TYPE_KEYPAD) return 0;
    else return indev->proc.last_key;
}