No one Indev Events didn't happened

Description

No one Indev events didn’t happened

What MCU/Processor/Board and compiler are you using?

Simulator

What LVGL version are you using?

Master

What do you want to achieve?

I tried to get one of many events, but no one didn’t happens. I checked that input device is worked, tried to hold down key for more than 1000ms, but not LV_EVENT_LONG_PRESSED or LV_EVENT_PRESSED or else other are not elapsed. How To enable indev events?

Code to reproduce

void Dashboard_InputDevice_Init(void)
{
indev = lv_indev_create();

lv_indev_set_type(indev, LV_INDEV_TYPE_KEYPAD);
lv_group_t* g = lv_group_create();

lv_group_add_obj(g, leftSlider);
lv_group_add_obj(g, rightSlider);

lv_indev_set_group(indev, g);

lv_indev_set_read_cb(indev, Dashboard_InputDevice_Read);

lv_indev_add_event_cb(indev, (lv_event_cb_t)keyIsLongPressed, LV_EVENT_ALL, keyIsLongPressed);

lv_indev_add_event_cb(indev, (lv_event_cb_t)keyIsLongPressed, LV_EVENT_RELEASED, keyIsLongPressed);

for (int i = LV_EVENT_ALL; i <= LV_EVENT_HOVER_LEAVE; i = i + LV_EVENT_PRESSED)
{
    lv_indev_add_event_cb(indev, (lv_event_cb_t)keyIsLongPressed, (lv_event_code_t)i, keyIsLongPressed);
}

}