set_keyboard_rate(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ set_keyboard_rate(3) ✨

okay so bestie, welcome to the Allegro manual πŸ’– this one's a tiny little function from the Allegro game programming library and it's literally the girl who controls how fast your keyboard goes brrr when you hold a key down πŸŽ€


🌸 NAME 🌸

set_keyboard_rate</ppurple> β€” sets the keyboard repeat rate. Allegro game programming library. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

void set_keyboard_rate(int delay, int repeat);

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜• β€” set_keyboard_rate sets the keyboard repeat rate, no cap. 🎹✨

the times are given in milliseconds bestie, keep that in mind, it's giving very precise πŸ‘‘

and the wild part: passing zero times will disable the key repeat entirely πŸ’€ so if you pass zeros, no repeat, nothing, the key just sits there. iconic but also be careful fr fr πŸ™ˆ


🫢 SEE ALSO 🫢

go read those too bestie, they're all part of the same lil keyboard friend group 🌈


and that's the whole page!! πŸŽ€ this was Allegro, version 4.4.3, and the page itself is set_keyboard_rate(3) β€” mwah, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from