kbd_repeat(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

✨ NAME ✨

kbd_repeat β€” Change keyboard repeat period πŸ’…

Okay so this is the Arcan Lua API manual, and today’s main character is literally kbd_repeat(3). We’re talking keyboard repeat behavior, bestie β€” let’s get into it πŸŽ€


🌸 SYNOPSIS 🌸

old_period, old_delay
kbd_repeat( repeat_period, repeat_delay )

Like, you call it with repeat_period and repeat_delay, and the synopsis says you get back old_period, old_delay. Slay.


πŸ¦‹ DESCRIPTION πŸ¦‹

Keyboard- and mouse input devices are treated as somewhat special compared to other forms of input, and therefore have more global states tracked. No cap β€” they’re just built different in this API 😭

This function is used to manipulate the behavior for when a key is pressed and held down. The repeat_period argument specifies the number of miliseconds between each press/release event, or 0 if disabled. The optional repeat_delay argument specifies how long the key has to be held down before the repeat press/release events start being delivered. Iconic behavior control, honestly 🫢


πŸ’– NOTES πŸ’–

  1. If period is set to a negative number, only the old values will be returned.
Heads up, bestie: negative period means you’re just getting the old values back. That’s the vibe check, and that’s the note πŸ’€

This page is brought to you by the iodev source, dated October 2026, and it’s literally the kbd_repeat(3) page β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from