XkbLookupKeySym(3)

πŸ’… XkbLookupKeySym(3) πŸ’… β€” the XKB FUNCTIONS page πŸŽ€

🌸 NAME 🌸

XkbLookupKeySym β€” find the symbol associated with a key for a particular state. periodt ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸŽ€ ARGUMENTS πŸŽ€

  • dpy β€” your connection to the X server, bestie.
  • key β€” the key whose symbols we're trying to find.
  • state β€” the state we want the symbol for.
  • mods_rtrn β€” gets backfilled with consumed modifiers.
  • sym_rtrn β€” gets backfilled with the symbol associated with key + state.

πŸ’– DESCRIPTION πŸ’–

okay so XkbLookupKeySym is literally the equivalent of the core XLookupKeySym function. For the core keyboard, if you give it a keycode key and an Xkb state state, it returns the symbol associated with the key in sym_rtrn, plus the list of modifiers that should still be applied in mods_rtrn. πŸ”₯

The state parameter is the state from a KeyPress or KeyRelease event. And XkbLookupKeySym returns True if it succeeds β€” slay. πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– that's a wrap, bestie! brought to you by X Version 11 and libX11 1.8.14 β€” this is the XkbLookupKeySym(3) page, no cap. πŸŽ€βœ¨

πŸ“¦ where this page comes from