lv_xkb.h

API reference for lv_xkb.h

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

Functions

lv_xkb_init

Initialise an XKB descriptor.

 
bool lv_xkb_init(lv_xkb_t *dsc, struct xkb_rule_names names)
Parameters
NameType
dsclv_xkb_t *
namesstruct xkb_rule_names

Returns: bool — true if the initialisation was successful

lv_xkb_deinit

De-initialise an XKB descriptor.

 
void lv_xkb_deinit(lv_xkb_t *dsc)
Parameters
NameTypeDescription
dsclv_xkb_t *Pointer to descriptor May be NULL.

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)
Parameters
NameTypeDescription
dsclv_xkb_t *XKB descriptor to use
scancodeuint32_tevdev scancode to process
downbooltrue 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

Last updated on

On this page