lv_evdev.h

API reference for lv_evdev.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_evdev_private.h

Functions

lv_evdev_set_swap_axes

Set whether coordinates of pointer device should be swapped. Defaults to false.

 
void lv_evdev_set_swap_axes(lv_indev_t *indev, bool swap_axes)
Parameters
NameTypeDescription
indevlv_indev_t *evdev input device
swap_axesboolwhether to swap x and y axes

lv_evdev_set_calibration

Configure a coordinate transformation for pointer devices. Applied after axis swap, if any. Defaults to apply no transformation.

 
void lv_evdev_set_calibration(lv_indev_t *indev, int min_x, int min_y, int max_x, int max_y)
Parameters
NameTypeDescription
indevlv_indev_t *evdev input device
min_xintpointer coordinate mapped to min x of display
min_yintpointer coordinate mapped to min y of display
max_xintpointer coordinate mapped to max x of display
max_yintpointer coordinate mapped to max y of display

Enums

lv_evdev_type_t

NameDescription
LV_EVDEV_TYPE_RELmice
LV_EVDEV_TYPE_ABStouch screens, mousepads
LV_EVDEV_TYPE_KEYkeyboards, keypads, buttons

Typedefs

lv_evdev_discovery_cb_t

 
typedef void(* lv_evdev_discovery_cb_t) (lv_indev_t *indev, lv_evdev_type_t type, void *user_data)
Used by 1 function
  • lv_evdev_discovery_start — param cb

Dependencies

How is this guide?

Last updated on

On this page