docs(indev): Document the relation between LV_INDEV_MODE_EVENT and data->continue_reading (#5586)

This commit is contained in:
J. Neuschäfer
2024-02-05 07:12:19 +01:00
committed by GitHub
parent 61c209c504
commit c23b9bc5ce
2 changed files with 3 additions and 1 deletions

View File

@@ -258,6 +258,8 @@ You can do this in the following way:
.. note:: that :cpp:func:`lv_indev_read`, :cpp:func:`lv_timer_handler` and :cpp:func:`_lv_display_refr_timer` can not run at the same time. .. note:: that :cpp:func:`lv_indev_read`, :cpp:func:`lv_timer_handler` and :cpp:func:`_lv_display_refr_timer` can not run at the same time.
.. note:: For devices in event-driven mode, `data->continue_reading` is ignored.
Further reading Further reading
*************** ***************

View File

@@ -55,7 +55,7 @@ typedef struct {
int16_t enc_diff; /**< For LV_INDEV_TYPE_ENCODER number of steps since the previous read*/ int16_t enc_diff; /**< For LV_INDEV_TYPE_ENCODER number of steps since the previous read*/
lv_indev_state_t state; /**< LV_INDEV_STATE_REL or LV_INDEV_STATE_PR*/ lv_indev_state_t state; /**< LV_INDEV_STATE_REL or LV_INDEV_STATE_PR*/
bool continue_reading; /**< If set to true, the read callback is invoked again*/ bool continue_reading; /**< If set to true, the read callback is invoked again, unless the device is in event-driven mode*/
} lv_indev_data_t; } lv_indev_data_t;
typedef void (*lv_indev_read_cb_t)(lv_indev_t * indev, lv_indev_data_t * data); typedef void (*lv_indev_read_cb_t)(lv_indev_t * indev, lv_indev_data_t * data);