DOKK / manpages / debian 12 / libx11-doc / XkbLookupKeySym.3.en
XkbLookupKeySym(3) XKB FUNCTIONS XkbLookupKeySym(3)

XkbLookupKeySym - Find the symbol associated with a key for a particular state

Bool XkbLookupKeySym (Display *dpy, KeyCode key, unsigned int state, unsigned int *mods_rtrn, KeySym *sym_rtrn);

connection to X server
key for which symbols are to be found
state for which symbol should be found
backfilled with consumed modifiers
backfilled with symbol associated with key + state

XkbLookupKeySym is the equivalent of the core XLookupKeySym function. For the core keyboard, given a keycode key and an Xkb state state, XkbLookupKeySym returns the symbol associated with the key in sym_rtrn and the list of modifiers that should still be applied in mods_rtrn. The state parameter is the state from a KeyPress or KeyRelease event. XkbLookupKeySym returns True if it succeeds.

XLookupKeySym(3)

libX11 1.8.4 X Version 11