30#define LV_INDEV_DEF_SCROLL_LIMIT 10
33#define LV_INDEV_DEF_SCROLL_THROW 10
37#define LV_INDEV_DEF_LONG_PRESS_TIME 400
41#define LV_INDEV_DEF_LONG_PRESS_REP_TIME 100
45#define LV_INDEV_DEF_GESTURE_LIMIT 50
48#define LV_INDEV_DEF_GESTURE_MIN_VELOCITY 3
72 LV_INDEV_STATE_RELEASED = 0,
73 LV_INDEV_STATE_PRESSED
126 uint16_t long_press_repeat_time;
135 uint8_t long_pr_sent : 1;
136 uint8_t reset_query : 1;
137 uint8_t disabled : 1;
138 uint8_t wait_until_release : 1;
159 lv_dir_t scroll_dir : 4;
160 lv_dir_t gesture_dir : 4;
161 uint8_t gesture_sent : 1;
lv_indev_t * lv_indev_drv_register(struct _lv_indev_drv_t *driver)
lv_indev_type_t
Definition lv_hal_indev.h:62
@ LV_INDEV_TYPE_POINTER
Definition lv_hal_indev.h:64
@ LV_INDEV_TYPE_NONE
Definition lv_hal_indev.h:63
@ LV_INDEV_TYPE_KEYPAD
Definition lv_hal_indev.h:65
@ LV_INDEV_TYPE_BUTTON
Definition lv_hal_indev.h:66
@ LV_INDEV_TYPE_ENCODER
Definition lv_hal_indev.h:67
void lv_indev_delete(lv_indev_t *indev)
struct _lv_indev_proc_t _lv_indev_proc_t
void lv_indev_drv_update(lv_indev_t *indev, struct _lv_indev_drv_t *new_drv)
lv_indev_t * lv_indev_get_next(lv_indev_t *indev)
struct _lv_indev_t lv_indev_t
void lv_indev_drv_init(struct _lv_indev_drv_t *driver)
void _lv_indev_read(lv_indev_t *indev, lv_indev_data_t *data)
struct _lv_indev_drv_t lv_indev_drv_t
lv_indev_state_t
Definition lv_hal_indev.h:71
Definition lv_hal_disp.h:158
Definition lv_hal_indev.h:88
uint8_t scroll_throw
Definition lv_hal_indev.h:114
void(* feedback_cb)(struct _lv_indev_drv_t *, uint8_t)
Definition lv_hal_indev.h:98
lv_timer_t * read_timer
Definition lv_hal_indev.h:108
uint8_t gesture_limit
Definition lv_hal_indev.h:120
struct _lv_disp_t * disp
Definition lv_hal_indev.h:105
uint8_t scroll_limit
Definition lv_hal_indev.h:111
uint8_t gesture_min_velocity
Definition lv_hal_indev.h:117
uint16_t long_press_time
Definition lv_hal_indev.h:123
lv_indev_type_t type
Definition lv_hal_indev.h:91
Definition lv_hal_indev.h:132
lv_point_t act_point
Definition lv_hal_indev.h:143
lv_point_t last_point
Definition lv_hal_indev.h:145
lv_point_t vect
Definition lv_hal_indev.h:147
lv_point_t last_raw_point
Definition lv_hal_indev.h:146
uint32_t pr_timestamp
Definition lv_hal_indev.h:170
uint32_t longpr_rep_timestamp
Definition lv_hal_indev.h:171
lv_indev_state_t state
Definition lv_hal_indev.h:133
Definition lv_hal_indev.h:176
const lv_point_t * btn_points
Definition lv_hal_indev.h:181
struct _lv_group_t * group
Definition lv_hal_indev.h:180
struct _lv_obj_t * cursor
Definition lv_hal_indev.h:179
Definition lv_hal_indev.h:77
int16_t enc_diff
Definition lv_hal_indev.h:81
uint32_t btn_id
Definition lv_hal_indev.h:80
uint32_t key
Definition lv_hal_indev.h:79
bool continue_reading
Definition lv_hal_indev.h:84
lv_indev_state_t state
Definition lv_hal_indev.h:83
lv_point_t point
Definition lv_hal_indev.h:78