mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
11 lines
357 B
C
11 lines
357 B
C
#include "pika_lvgl_indev_t.h"
|
|
#include "lvgl.h"
|
|
|
|
void pika_lvgl_indev_t_get_vect(PikaObj* self, PikaObj* point) {
|
|
lv_indev_t* lv_indev = obj_getPtr(self, "lv_indev");
|
|
lv_point_t* lv_point = obj_getPtr(point, "lv_point");
|
|
lv_indev_get_vect(lv_indev, lv_point);
|
|
obj_setInt(point, "x", lv_point->x);
|
|
obj_setInt(point, "y", lv_point->y);
|
|
}
|