Hi adlo

mið., 1. des. 2021 kl. 14:31 skrifaði adlo <adloco...@gmail.com>:
>
> Hi
>
> Does xkbcommon have a function to convert a keysym to a keycode?

It does not, last time I checked, but
"xkb_keymap_key_get_mods_for_level" does help a lot.

Wayvnc does this sort of reverse key mapping. Maybe this helps? See:
https://github.com/any1/wayvnc/blob/master/src/keyboard.c

Regards,
Andri

Reply via email to