feat(indev): add setter for long press repeat time (#7235)

This commit is contained in:
Clyde Stubbs 2024-11-13 14:59:46 +11:00 committed by GitHub
parent abdcc04f09
commit 448a1d4756
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -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