adime_scanc..._short_name(3)
π NAME π
adime_scancode_to_short_name β the lil bestie that turns a keyboard scancode into its short lil name β¨
π SYNOPSIS π
#include <adime.h>
char *adime_scancode_to_short_name(int scancode, char *buf)
πΈ DESCRIPTION πΈ
okay so. you have a scancode, right? like, the raw number a keyboard sends when you press a key π and you want the name of that key but make it short. that's literally this function, no cap.
it converts a keyboard scancode into a string π¦ and here's the cute part β the string it gives you is exactly the text that comes after KEY_Β΄ in the macro name for that key. so if you feed it KEY_DELETE, it hands you back "DELETE"`. it's giving "just the vibe, none of the prefix" π
and what does it return? bestie it returns the buffer π«Ά OR β if the scancode didn't match any known key β it returns NULL. so yeah, always vibe check your return value, okay? π
π₯ SEE ALSO π₯
adime_scancode_to_pretty_name(3)β the glow-up version of this one β¨adime_short_name_to_scancode(3)β the reverse, iykyk π
and that's the whole page bestie π this one lives in the Adime API Reference, it's the adime_scanc..._short_name(3) page, and it's brought to you by Adime, version 2.2.1 β stan π periodt π
π¦ where this page comes from
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms