mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-26 19:23:46 +08:00
feat(indev): add setter for long press repeat time (#7235)
This commit is contained in:
parent
abdcc04f09
commit
448a1d4756
@ -369,6 +369,13 @@ void lv_indev_set_long_press_time(lv_indev_t * indev, uint16_t long_press_time)
|
||||
indev->long_press_time = long_press_time;
|
||||
}
|
||||
|
||||
void lv_indev_set_long_press_repeat_time(lv_indev_t * indev, uint16_t long_press_repeat_time)
|
||||
{
|
||||
if(indev == NULL) return;
|
||||
|
||||
indev->long_press_repeat_time = long_press_repeat_time;
|
||||
}
|
||||
|
||||
void lv_indev_set_scroll_limit(lv_indev_t * indev, uint8_t scroll_limit)
|
||||
{
|
||||
if(indev == NULL) return;
|
||||
|
@ -152,6 +152,13 @@ void lv_indev_set_display(lv_indev_t * indev, struct _lv_display_t * disp);
|
||||
*/
|
||||
void lv_indev_set_long_press_time(lv_indev_t * indev, uint16_t long_press_time);
|
||||
|
||||
/**
|
||||
* Set long press repeat time to indev
|
||||
* @param indev pointer to input device
|
||||
* @param long_press_repeat_time long press repeat time in ms
|
||||
*/
|
||||
void lv_indev_set_long_press_repeat_time(lv_indev_t * indev, uint16_t long_press_repeat_time);
|
||||
|
||||
/**
|
||||
* Set scroll limit to the input device
|
||||
* @param indev pointer to an input device
|
||||
|
Loading…
Reference in New Issue
Block a user