XkbKeyKeyTypeIndex(3) XKB FUNCTIONS XkbKeyKeyTypeIndex(3)

XkbKeyKeyTypeIndex - Obtain the index of a key type or the pointer to a key type

int XkbKeyKeyTypeIndex (XkbDescPtr xkb, KeyCode keycode, int group);

Xkb description of interest
keycode of interest
group index

XkbKeyKeyTypeIndex computes an index into the types vector of the client map in xkb from the given keycode and group index.

libX11 1.8.9 X Version 11