GLUTMOUSEWHEELFUNC(3)
π GLUTMOUSEWHEELFUNC(3) π
okay so bestie, this page is from OpenGLUT - input, and itβs literally all about glutMouseWheelFunc π
β¨ NAME β¨
glutMouseWheelFunc β sets the mouse wheel callback for the current window. no cap.
π LIBRARY π
OpenGLUT - input
πͺ SYNOPSIS πͺ
#include <openglut.h>
void
glutMouseWheelFunc(void( *callback )( int wheel, int direction, int x,
int y ));
π― PARAMETERS π―
callbackβ Client hook for mouse wheel events. itβs the lil function you hand over to catch those wheel moments π«Ά
π« DESCRIPTION π«
If the mouse wheel is spun over your (sub)window, OpenGLUT will, in theory, report this via the MouseWheel callback. wheel is the wheel number, direction is +/- 1, and x and y are the mouse coordinates. periodt.
If you do not register a wheel callback, wheel events will be reported as mouse buttons.
This callback is bound to the current window. π
π CAVEATS π
Due to lack of information about the mouse, it is impossible to implement this correctly on X at this time. Use of this function limits the portability of your application. (This feature does work on X, just not reliably.) You are encouraged to use the standard, reliable mouse-button reporting, rather than wheel events.
bestie this is the part where we say: use the reliable mouse-button reporting, not the wheel-event chaos. itβs giving βportability who?β π
Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.
π SEE ALSO π
xoxo, this page is source/version UNTITLED() and date UNDATED β iconic, mysterious, slightly unhinged, we love her ππ¦
π¦ 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