projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d194f01
)
Fixing Linux key-repeat mode bug reported in "[ 1796845 ] Keyboard events are lost...
author
John F. Fay
<johnffay@nettally.com>
Wed, 19 Sep 2007 04:15:14 +0000
(
04:15
+0000)
committer
John F. Fay
<johnffay@nettally.com>
Wed, 19 Sep 2007 04:15:14 +0000
(
04:15
+0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@722
7f0cb862
-5218-0410-a997-
914c9d46530a
src/freeglut_main.c
patch
|
blob
|
history
diff --git
a/src/freeglut_main.c
b/src/freeglut_main.c
index
44876f2
..
c49943e
100644
(file)
--- a/
src/freeglut_main.c
+++ b/
src/freeglut_main.c
@@
-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 )
{