2 /* Copyright (c) Mark J. Kilgard, 1996, 1997. */
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
12 glutIgnoreKeyRepeat(int ignore
)
14 __glutCurrentWindow
->ignoreKeyRepeat
= ignore
;
18 glutSetKeyRepeat(int repeatMode
)
20 #if !defined(_WIN32) && !defined(__OS2PM__)
21 XKeyboardControl values
;
23 /* GLUT's repeatMode #define's match the Xlib API values. */
24 values
.auto_repeat_mode
= repeatMode
;
25 XChangeKeyboardControl(__glutDisplay
, KBAutoRepeatMode
, &values
);