lv_indev_private.h

API reference for lv_indev_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_indev.h

Functions

lv_indev_find_scroll_obj

Find a scrollable object based on the current scroll vector in the indev. In handles scroll propagation to the parent if needed, and scroll directions too.

 
lv_obj_t * lv_indev_find_scroll_obj(lv_indev_t *indev)
Parameters
NameTypeDescription
indevlv_indev_t *pointer to an indev

Returns: lv_obj_t * — the found scrollable object or NULL if not found.

Structs

struct

_lv_indev_t

MemberTypeDescription
ext_datalv_ext_data_t
typelv_indev_type_tInput device type
read_cblv_indev_read_cb_tFunction pointer to read input device data.
statelv_indev_state_tCurrent state of the input device.
prev_statelv_indev_state_tPrevious state of the input device.
modelv_indev_mode_t
long_pr_sentuint8_t
reset_queryuint8_t
enableduint8_t
wait_until_releaseuint8_t
stop_processing_queryuint8_t
timestampuint32_tTimestamp of last event
pr_timestampuint32_tPressed time stamp
longpr_rep_timestampuint32_tLong press repeat time stamp
driver_datavoid *
user_datavoid *Pointer to the assigned display
displv_display_t *Timer to periodically read the input device
read_timerlv_timer_t *Number of pixels to slide before actually drag the object
scroll_limituint8_tDrag throw slow-down in [%]. Greater value means faster slow-down
scroll_throwuint8_tMinimum velocity: difference between consecutive points must exceed this (in pixels) to detect gesture speed
gesture_min_velocityuint8_tMinimum distance: total travel from first to current point must exceed this (in pixels) to trigger gesture
gesture_min_distanceuint8_tLong press time in milliseconds
long_press_timeuint16_tRepeated trigger period in long press [ms]
long_press_repeat_timeuint16_tRotary diff count will be multiplied by this value and divided by 256
rotary_sensitivityint32_t
act_pointlv_point_tCurrent point of input device.
last_pointlv_point_tLast point of input device.
last_raw_pointlv_point_tLast point read from read_cb.
vectlv_point_tDifference between act_point and last_point.
vect_histlv_point_t[8]
vect_hist_timestampuint32_t[8]
vect_hist_indexuint8_t
scroll_sumlv_point_t
scroll_throw_vectlv_point_t
scroll_throw_vect_orilv_point_t
act_objlv_obj_t *
scroll_objlv_obj_t *
last_pressedlv_obj_t *
last_hoveredlv_obj_t *
scroll_arealv_area_t
gesture_sumlv_point_t
diffint32_t
short_click_streakuint8_t
last_short_click_pointlv_point_t
last_short_click_timestampuint32_t
scroll_diruint8_t
gesture_diruint8_t
gesture_sentuint8_t
press_moveduint8_t
presseduint8_t
pointerstruct _lv_indev_t
last_statelv_indev_state_t
last_keyuint32_t
keypadstruct _lv_indev_t
cursorlv_obj_t *Cursor for LV_INPUT_TYPE_POINTER
grouplv_group_t *Keypad destination group
btn_pointsconst lv_point_t *Array points assigned to the button ()screen will be pressed here by the buttons
event_listlv_event_list_t
scroll_throw_animlv_anim_t *Key remapping callback
key_remap_cblv_indev_key_remap_cb_t
recognizerslv_indev_gesture_recognizer_t[LV_INDEV_GESTURE_CNT]
cur_gesturelv_indev_gesture_type_t
gesture_datavoid *[LV_INDEV_GESTURE_CNT]
gesture_typelv_indev_gesture_type_t[LV_INDEV_GESTURE_CNT]

Macros

LV_INDEV_VECT_HIST_SIZE

 
#define LV_INDEV_VECT_HIST_SIZE 8

Dependencies

How is this guide?

Last updated on

On this page