set_keyboard_rate(3alleg4)

πŸ’– set_keyboard_rate β€” bestie edition πŸ’–

okay so this is a page from the Allegro manual, section 3alleg4, and it's all about set_keyboard_rate. Allegro is a game programming library, and this lil function is here to make your keyboard keys go brrrr at the exact speed you want. πŸŽ€


✨ NAME ✨

set_keyboard_rate β€” sets the keyboard repeat rate. it's part of the Allegro game programming library, bestie. πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

void set_keyboard_rate(int delay, int repeat);

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this function sets the keyboard repeat rate. you know how when you hold a key down and it goes tap... tap... tap tap tap tap? yeah, that. this is how you control it. ✨

Times are given in milliseconds, no cap. 🫢

and listen β€” if you pass zero times, it will disable the key repeat entirely. not slow it down. not make it tiny. disable. gone. the keys will just sit there. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, fr fr. stay iconic, go make your keyboard go fast, and remember: zero means off, not warp speed. πŸ’œ

Allegro β€” version 4.4.3 β€” set_keyboard_rate(3alleg4) 🧚 bye bestie, ily, happy hacking! 🌈