remove_keyboard(3)
π remove_keyboard(3)
okay so bestie, we're in the Allegro manual today and this one is short but lowkey important. buckle up π
β¨ NAME β¨
remove_keyboard β Removes the Allegro keyboard handler. bye bye keyboard vibes πβ¨οΈ
π¦ SYNOPSIS π¦
#include <allegro.h>
void remove_keyboard();
πΈ DESCRIPTION πΈ
So what does it do? It removes the keyboard handler, handing control right back to the operating system. that's it. that's the whole job. iconic minimalism π
ngl, you don't normally need to bother calling this, because allegro_exit() will do it for you. she's got your back, fr fr. π«Ά
But β and this is the part that matters β you might want to call this during runtime if you want to change the keyboard mapping on those platforms where keyboard mappings are needed. the way that requires a lil two-step dance:
- first you modify the configuration variable holding the keyboard mapping
- then you reinstall the keyboard handler
no cap. here's the example straight from the source:
remove_keyboard();
/* Switch to Spanish keyboard mapping. */
set_config_string("system", "keyboard", "es");
install_keyboard();
see? out with the old handler, swap the config, back in with the new one. main character energy β¨
π SEE ALSO π
π reminder bestie: this is Allegro version 4.4.3 energy β go forth and remap those keyboards, you absolute legend π
mwah π stay slaying, keyboard handler πβ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms