GLUTPASSIVEMOTIONFUNC(3)
β¨ NAME β¨
glutPassiveMotionFunc β bestie, this one sets the non-dragging (gliding? π) mouse-motion callback. It's the vibe check for your mouse when literally no buttons are pressed.
π LIBRARY π
OpenGLUT - input π¦
π SYNOPSIS π
#include <openglut.h>
void
glutPassiveMotionFunc(void( *callback )( int x, int y ));
πΈ PARAMETERS πΈ
callbackβ your client mouse-glide hook. The little function that gets pinged when the mouse just. glides. π
π DESCRIPTION π
okay so here's the tea: if you set this callback on a window, then every single time OpenGLUT detects a change in the mouse position inside that window β and no buttons are pressed on that mouse, we're talking strictly vibes-only gliding here β OpenGLUT will invoke callback with the window coordinates of the mouse. πβ¨
the way this works is so iconic honestly, no cap.
and heads up bestie: this callback is bound to the current window. so it's giving very main-character, very "this window only" energy. π«Ά
π CAVEATS π
not me having to tell you this but β windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent. always. periodt. so if your menu window is acting like it's passing stuff up the chain, that's not a bug, that's just how it is π
π SEE ALSO π
and that's the whole page, bestie π this one's UNDATED and UNTITLED() β yeah fr fr, no version stamp, no fancy title, just vibes and a mouse callback. iykyk π
π¦ 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