Hi
Does xkbcommon have a function to convert a keysym to a keycode?
Also, what keycodes does Weston use? It seems that in libweston, KEY_TAB is
assigned the number 15. Is this a real keycode? Is this a standard keycode? Is
it used in xkbcommon or anything like that?
Regards
adlo
Hi adlo
mið., 1. des. 2021 kl. 14:31 skrifaði adlo :
>
> 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:/
On Wed, Dec 01, 2021 at 02:31:38PM +, adlo wrote:
> Does xkbcommon have a function to convert a keysym to a keycode?
it doesn't, but if you look at xkbcli how-to-type and it's source
(tools/how-to-type.c) that's the closest approximation.
Main reason is that the keycode->keysym conversion is