GLUTSPECIALFUNC(3)
π GLUTSPECIALFUNC(3) π
okay bestie, welcome to the GLUTSPECIALFUNC(3) page, aka the manual for glutSpecialFunc π
β¨ NAME β¨
glutSpecialFunc β Sets the Special callback for the current window π
π LIBRARY π
OpenGLUT - input
πΈ SYNOPSIS πΈ
#include <openglut.h>
void
glutSpecialFunc(void( *callback )( int key, int x, int y ));
π¦ PARAMETERS π¦
callbackβ the client function that gets called on a keyboard event. yes queen, that's your glow-up function π
π DESCRIPTION π
so basically, this registers a callback that OpenGLUT is gonna call whenever the user hits one of the "special" keys on their keyboard. no cap. πΉβ¨
The special callback handles a bunch of extra keys that are not covered by plain "keyboard" events. The key that gets passed into your callback is one of an enumerated set β and honestly the mapping to the actual keys on your keyboard is pretty obvious, it's giving common sense π§ π
. Their GLUT symbol names are:
GLUT_KEY_F1GLUT_KEY_F2GLUT_KEY_F3GLUT_KEY_F4GLUT_KEY_F5GLUT_KEY_F6GLUT_KEY_F7GLUT_KEY_F8GLUT_KEY_F9GLUT_KEY_F10GLUT_KEY_F11GLUT_KEY_F12GLUT_KEY_LEFTGLUT_KEY_UPGLUT_KEY_RIGHTGLUT_KEY_DOWNGLUT_KEY_PAGE_UPGLUT_KEY_PAGE_DOWNGLUT_KEY_HOMEGLUT_KEY_ENDGLUT_KEY_INSERT
want the other keys too? that's a whole different vibe, go see glutKeyboardFunc() π«Ά
This callback is bound to the current window β
π CAVEATS π
lowkey important, so listen up fr fr:
- So many keys are just not included here. like, they simply didn't make the list π
- and it is not possible to apply qualifiers such as the Shift or Ctrl key to these keys. nope, no modifier glow-up for these ones π
also, windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent. always. periodt. π
π₯ SEE ALSO π₯
okay that's the whole page, bestie, you ate that ππ this was the UNDATED edition, brought to you by UNTITLED() β iconic behavior, no notes, slay β¨π
π¦ 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