mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(monkey): use lv_indev_get_user_data
This commit is contained in:
parent
0e10ee94d1
commit
1c1b599880
@ -125,7 +125,7 @@ void lv_monkey_del(lv_monkey_t * monkey)
|
|||||||
|
|
||||||
static void lv_monkey_read_cb(lv_indev_t * indev, lv_indev_data_t * data)
|
static void lv_monkey_read_cb(lv_indev_t * indev, lv_indev_data_t * data)
|
||||||
{
|
{
|
||||||
lv_monkey_t * monkey = indev->user_data;
|
lv_monkey_t * monkey = lv_indev_get_user_data(indev);
|
||||||
|
|
||||||
data->btn_id = monkey->indev_data.btn_id;
|
data->btn_id = monkey->indev_data.btn_id;
|
||||||
data->point = monkey->indev_data.point;
|
data->point = monkey->indev_data.point;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user