GLUTGETMODIFIERS(3)

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

πŸ’– 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_SHIFT
  • GLUT_ACTIVE_CTRL
  • GLUT_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 πŸ’‹βœ¨