Fixing Linux key-repeat mode bug reported in "[ 1796845 ] Keyboard events are lost when key repeat is enabled."
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@722 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
7234e21a11
commit
f5cd6eb893
@ -1290,7 +1290,10 @@ void FGAPIENTRY glutMainLoopEvent( void )
|
||||
/* Cease processing this event if it is auto repeated */
|
||||
|
||||
if (window->State.KeyRepeating)
|
||||
{
|
||||
if (event.type == KeyPress) window->State.KeyRepeating = GL_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
if( event.type == KeyPress )
|
||||
{
|
||||
|
Reference in New Issue
Block a user