GLUT Keyboard Interaction
Listen for regular ASCII strokes and special arrow keys to manipulate the viewport rendering parameters on the fly.
None
Last Key Pressed
N/A
ASCII / Special Code
X: 0, Y: 0
Teapot Offsets
0°
Rotation Angle
Live C++ OpenGL Code
Registered Keyboard Callbacks
Click any callback tag below to simulate a keyboard event, or directly type in this window!
Onscreen D-Pad Controls
Click the buttons below to simulate `glutSpecialFunc` triggers.
GLUT Event Monitor Console
Initialize Keyboard Listeners...
Mathematical Trace
Keyboard events change offset/rotation matrix components. Try pressing W, S, P, C, or Arrow Keys!