lv_evdev.h
API reference for lv_evdev.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_evdev_private.h
Summary
Functions
drivers/evdev/lv_evdev.h:81function
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)| Name | Type | Description |
|---|---|---|
indev | lv_indev_t * | evdev input device |
swap_axes | bool | whether to swap x and y axes |
drivers/evdev/lv_evdev.h:92function
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)| Name | Type | Description |
|---|---|---|
indev | lv_indev_t * | evdev input device |
min_x | int | pointer coordinate mapped to min x of display |
min_y | int | pointer coordinate mapped to min y of display |
max_x | int | pointer coordinate mapped to max x of display |
max_y | int | pointer coordinate mapped to max y of display |
Enums
lv_evdev_type_t
| Name | Description |
|---|---|
LV_EVDEV_TYPE_REL | mice |
LV_EVDEV_TYPE_ABS | touch screens, mousepads |
LV_EVDEV_TYPE_KEY | keyboards, keypads, buttons |
Typedefs
drivers/evdev/lv_evdev.h:36typedef
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— paramcb
Dependencies
How is this guide?
Last updated on