GLUTSETKEYREPEAT(3)
β¨ 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 π
glutIgnoreKeyRepeat(3)β the window-specific sibling, go say hi π
π a lil note from me to you:repeatModetakes exactlyOn,Off, orDefaultβ those three words mean the threeGLUT_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) β¨π
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms