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! π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms