IsCursorKey(3)
β¨ IsCursorKey(3) β¨
okay so this is one of those XLIB FUNCTIONS pages, bestie β it's the official keysym classification macro lore and honestly it's giving "tiny functions, big main character energy" π
π NAME π
IsCursorKey, IsFunctionKey, IsKeypadKey, IsMiscFunctionKey, IsModifierKey, IsPFKey, IsPrivateKeypadKey β the keysym classification macros, aka the friend group that looks at a KeySym and is like "hmm what are you tho" π΅οΈββοΈ
πΈ SYNTAX πΈ
int IsCursorKey(KeySym keysym);
int IsFunctionKey(KeySym keysym);
int IsKeypadKey(KeySym keysym);
int IsMiscFunctionKey(KeySym keysym);
int IsModifierKey(KeySym keysym);
int IsPFKey(KeySym keysym);
int IsPrivateKeypadKey(KeySym keysym);
π¦ ARGUMENTS π¦
keysymβ bestie, this is literally theKeySymthat is to be tested. that's the whole assignment. hand it over and let the macro do its little vibe check β¨
π DESCRIPTION π
okay so each of these macros is a tiny "are youβ¦?" detector, and they all lowkey do the same shape of thing: you give them a KeySym, they hit you back with True if that keysym matches their whole thing, and honestly they're all eating π₯
IsCursorKeyreturnsTrueif the specifiedKeySymis a cursor key. arrow-key behavior, no cap πIsFunctionKeyreturnsTrueif theKeySymis a function key. yes the F-keys, they have a fanbase πIsKeypadKeyreturnsTrueif the specifiedKeySymis a keypad key. numpad girlies rise πΈIsMiscFunctionKeyreturnsTrueif the specifiedKeySymis a miscellaneous function key. the misc ones are so iconically unbothered πIsModifierKeyreturnsTrueif the specifiedKeySymis a modifier key. the ones that change what everything else means, main character energy fr fr βIsPFKeyreturnsTrueif the specifiedKeySymis a PF key. PF keys stay having their own little moment π¦IsPrivateKeypadKeyreturnsTrueif the specifiedKeySymis a vendor-private keypad key. vendor-private, so like, it's got its own thing going on π
ngl all seven returnint, and the answer you care about isTrueβ that's the whole vibe check π
π«Ά SEE ALSO π«Ά
XkbKeyTypesForCoreSymbols(3)AllPlanes(3)BlackPixelOfScreen(3)ImageByteOrder(3)Xlib - C Language X Interface
and that's the page bestie!! shoutout to X Version 11, libX11 1.8.14, and this little IsCursorKey(3) moment β go classify some keysyms, you're gonna slay ππβ¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms