GLUTSETKEYREPEAT(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ glutSetKeyRepeat ✨

okay bestie, so this is glutSetKeyRepeat from the OpenGLUT manual, and it lives in the inputstate section of the library πŸ’… (that's the LIBRARY part, iykyk). She's the global girlie of key repeat β€” not just for one window, but for everyone.


🌸 SYNOPSIS 🌸

#include <openglut.h>

void
glutSetKeyRepeat(int repeatMode);

like, one include, one function, no return value, we love a low-maintenance icon πŸŽ€


πŸ¦‹ PARAMETERS πŸ¦‹

  • repeatMode β€” this is the vibe check you're passing in. It can be On, Off, or Default. That's it. That's the whole job.

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea β˜• β€” glutSetKeyRepeat() is similar to glutIgnoreKeyRepeat(), EXCEPT it sets the behavior for OpenGLUT in general, not for one specific window. so if glutIgnoreKeyRepeat() is the girl who only changes her outfit for one party, glutSetKeyRepeat() is the girl who changes the dress code for the entire school 🫢

the options for repeatMode are literally these three:

  • GLUT_KEY_REPEAT_OFF β€” turn off repeat for all windows. no more holding a key and getting that little machine-gun situation. βœ‹
  • GLUT_KEY_REPEAT_ON β€” turn on repeat for all windows. hold the key, get the keys, periodt πŸ’…
  • GLUT_KEY_REPEAT_DEFAULT β€” respect the window's own setting. she's not making a decision, she's just honoring what each window already decided for itself 🌈

and that's genuinely the whole thing, no cap.


πŸ‘‘ SEE ALSO πŸ‘‘


🌟 a lil note from me to you: repeatMode takes exactly On, Off, or Default β€” those three words mean the three GLUT_KEY_REPEAT_* constants above, so don't go freestyling with anything else, bestie 😭

and that's the whole page, bestie!! 🧚 this one comes from the OpenGLUT manual, section 3, and the official footer situation is a lil iconic in its own right β€” it's marked UNDATED and the page title footer says UNTITLED(), which is giving main character energy with zero documentation of when or what, and honestly? respect πŸ™ˆπŸ’– go forth and repeat those keys (or don't) βœ¨πŸ“