From b1274e90782e279f9711ca26a1c4a4e04bc0f858 Mon Sep 17 00:00:00 2001
From: dcnieho
-
@@ -2261,7 +2261,45 @@ the Android page.
+The glutSetKeyRepeat and glutIgnoreKeyRepeat functions +set whether repeated key presses (generated by keeping a key depressed) +are passed on to the keyboard callbacks. glutSetKeyRepeat +allows to globally switch off key repeat, while +glutIgnoreKeyRepeat offers control over this behavior on a +per-window basis. +
+ +Definition
+ +
+void glutSetKeyRepeat (int repeatMode);
+void glutIgnoreKeyRepeat(int ignore);
Arguments
+glutSetKeyRepeat's repeatMode
+GLUT_KEY_REPEAT_OFF to globally switch key repeat off, or
+GLUT_KEY_REPEAT_ON and GLUT_KEY_REPEAT_DEFAULT to globally switch key
+repeat on.
+glutIgnoreKeyRepeat's ignore if non-zero, key
+repeat is switched off for the current window.
Notes
+ +If key repeat is globally switched off through +glutSetKeyRepeat, it cannot be reenabled on a per-window basis +with glutIgnoreKeyRepeat. If you want per-window control of key +repeat, set glutSetKeyRepeat to GLUT_KEY_REPEAT_ON and +use glutIgnoreKeyRepeat(GL_TRUE) to switch off key repeat for +the windows for which you don't want it.
+ +Changes From GLUT
+ +Nate Robbins' port of GLUT to win32 did not implement +glutSetKeyRepeat, but FreeGLUT's behavior should conform on all +platforms to GLUT's behavior on X11.