mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-19 14:30:55 -05:00
[lvgl] support long press repect time
This commit is contained in:
2
components/3rd_party/lvgl/src/maix_lvgl.cpp
vendored
2
components/3rd_party/lvgl/src/maix_lvgl.cpp
vendored
@@ -7,6 +7,7 @@
|
|||||||
#include "maix_basic.hpp"
|
#include "maix_basic.hpp"
|
||||||
|
|
||||||
#include "pointing_device.hpp"
|
#include "pointing_device.hpp"
|
||||||
|
#include "lv_indev_private.h"
|
||||||
|
|
||||||
// extern "C" {
|
// extern "C" {
|
||||||
// #include "cursor_48.c"
|
// #include "cursor_48.c"
|
||||||
@@ -99,6 +100,7 @@ namespace maix
|
|||||||
* Use the 'mouse' driver which reads the PC's mouse*/
|
* Use the 'mouse' driver which reads the PC's mouse*/
|
||||||
#if CONFIG_LVGL_USE_MOUSE
|
#if CONFIG_LVGL_USE_MOUSE
|
||||||
lv_indev_t * indev = lv_indev_create();
|
lv_indev_t * indev = lv_indev_create();
|
||||||
|
indev->long_press_repeat_time = 100;
|
||||||
lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER);
|
lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER);
|
||||||
pointing_device_init(indev);
|
pointing_device_init(indev);
|
||||||
lv_indev_set_read_cb(indev, pointing_device_read);
|
lv_indev_set_read_cb(indev, pointing_device_read);
|
||||||
|
|||||||
Reference in New Issue
Block a user