lv_xkb.h
API reference for lv_xkb.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_xkb_private.h
Summary
Functions
public/drivers/indev/lv_xkb.h:37function
lv_xkb_init
Initialise an XKB descriptor.
bool lv_xkb_init(lv_xkb_t *dsc, struct xkb_rule_names names)| Name | Type |
|---|---|
dsc | lv_xkb_t * |
names | struct xkb_rule_names |
Returns: bool — true if the initialisation was successful
public/drivers/indev/lv_xkb.h:43function
lv_xkb_deinit
De-initialise an XKB descriptor.
void lv_xkb_deinit(lv_xkb_t *dsc)| Name | Type | Description |
|---|---|---|
dsc | lv_xkb_t * | Pointer to descriptor May be NULL. |
public/drivers/indev/lv_xkb.h:52function
lv_xkb_process_key
Process an evdev scancode using a specific XKB descriptor.
uint32_t lv_xkb_process_key(lv_xkb_t *dsc, uint32_t scancode, bool down)| Name | Type | Description |
|---|---|---|
dsc | lv_xkb_t * | XKB descriptor to use |
scancode | uint32_t | evdev scancode to process |
down | bool | true if the key was pressed, false if it was releases |
Returns: uint32_t — the (first) UTF-8 character produced by the event or 0 if no output was produced
Dependencies
lv_conf_internal.hlv_types.hstdbool.hxkbcommon.h
Last updated on