mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Merge pull request #560 from kisvegabor/indev_data_init
lv_indev: init data before calling of indev_read
This commit is contained in:
commit
b8009d7c9a
@ -110,6 +110,8 @@ bool lv_indev_read(lv_indev_t * indev, lv_indev_data_t * data)
|
|||||||
bool cont = false;
|
bool cont = false;
|
||||||
|
|
||||||
if(indev->driver.read) {
|
if(indev->driver.read) {
|
||||||
|
memset(data, 0, sizeof(data));
|
||||||
|
data->state = LV_INDEV_STATE_REL;
|
||||||
data->user_data = indev->driver.user_data;
|
data->user_data = indev->driver.user_data;
|
||||||
|
|
||||||
LV_LOG_TRACE("idnev read started");
|
LV_LOG_TRACE("idnev read started");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user