Resolution of X11 key-repeat handling
authorNigel Stewart <nigels.com@gmail.com>
Sun, 14 Mar 2004 04:36:02 +0000 (04:36 +0000)
committerNigel Stewart <nigels.com@gmail.com>
Sun, 14 Mar 2004 04:36:02 +0000 (04:36 +0000)
commit4f58e4f75c3d57437da215f4119e9991b77272e0
treed3cf6b702eb057662132fc283decd6d70da9c9c0
parentd6ccf7c81bdad11e6902a258e8e21fdbe6b9f968
Resolution of X11 key-repeat handling

glutSetKeyRepeat is global to all FreeGLUT windows in the application
glutIgnoreKeyRepeat is a per-window over-ride

To avoid nasty global X11 state interaction, or GLUT-style
event queue filtering - the approach in FreeGLUT is to
use the current key state XQueryKeymap to detect and
ignore KeyRelease/KeyPress pairs that are auto-generated.

See also:
http://pyopengl.sourceforge.net/documentation/manual/glutSetKeyRepeat.3GLUT.xml
http://pyopengl.sourceforge.net/documentation/manual/glutIgnoreKeyRepeat.3GLUT.xml

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@476 7f0cb862-5218-0410-a997-914c9d46530a
src/freeglut_init.c
src/freeglut_internal.h
src/freeglut_main.c
src/freeglut_misc.c
src/freeglut_state.c
src/freeglut_structure.c