- {
- XKeyboardState keyboardState;
-
- /*
- * Query the current keyboard state
- */
- XGetKeyboardControl( fgDisplay.Display, &keyboardState );
-
- /*
- * Set the auto key repeat basing on the global settings
- */
- glutSetKeyRepeat(
- keyboardState.global_auto_repeat == AutoRepeatModeOn ?
- GLUT_KEY_REPEAT_ON : GLUT_KEY_REPEAT_OFF
- );
- }
- break;