GLUTGETMODIFIERS(3)
π glutGetModifiers(3) π
okay bestie, welcome to GLUTGETMODIFIERS(3) β the little page that tells you what your keyboard is doing while you're holding it down π
Library: OpenGLUT β inputstate β¨
β¨ NAME β¨
glutGetModifiers β tells you whether Alt, Shift and Ctrl are being held down rn. no cap, that's literally the whole job π
πΈ SYNOPSIS πΈ
#include <openglut.h>
int
glutGetModifiers(void);
π¦ DESCRIPTION π¦
so the vibe check is: depending on which modifier keys β if any β are currently being held, the value it hands back is the logical OR combination of any of these iconic symbolic bitmasks π«Ά
GLUT_ACTIVE_SHIFTGLUT_ACTIVE_CTRLGLUT_ACTIVE_ALT
like fr fr, e.g. if the shift key is held and no other modifier keys are held, this function will return GLUT_ACTIVE_SHIFT. simple as that, main character behaviour π
π BUGS π
- it complains if it's not invoked by a client callback π like girl, read the room, it needs the callback context.
- it does not differentiate between the left and right forms of the modifiers π so your left shift and right shift are giving the same energy to this function, unfortunately.
π SEE ALSO π
UNDATED Β· UNTITLED() β and that's the tea, bestie π this page was undated and came out of UNTITLED(), so if anyone asks where you got all this, that's the whole receipt. slay, stay modified, and go read the other four pages, mwah πβ¨
π¦ 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