simulate_keypress(3alleg4)

πŸ’– NAME πŸ’–

okay so bestie, this is simulate_keypress(3alleg4) from the Allegro game programming library ✨ and it's giving "shove a key into the keyboard buffer" energy. no cap. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void simulate_keypress(int key);

🌸 DESCRIPTION 🌸

Stuffs a key into the keyboard buffer, just as if the user had pressed it. The parameter is in the same format returned by readkey(). Example:

simulate_keypress(KEY_SPACE << 8);
if (readkey() == (KEY_SPACE << 8))
   allegro_message("You simulated Alt+Space\n");

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ that's the whole page, bestie. Allegro version 4.4.3 and simulate_keypress(3alleg4) β€” the original footer didn't give a date, so no invented date, periodt. 🫢