Utilise both FreeGLUT state and per-window filtering modes
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@483
7f0cb862-5218-0410-a997-
914c9d46530a
int keypress = -1;
POINT mouse_pos ;
- if( fgState.IgnoreKeyRepeat && (HIWORD(lParam) & KF_REPEAT) )
+ if( ( fgState.KeyRepeat==GLUT_KEY_REPEAT_OFF || window->State.IgnoreKeyRepeat==GL_TRUE ) && (HIWORD(lParam) & KF_REPEAT) )
break;
/*
case WM_SYSCHAR:
case WM_CHAR:
{
- if( fgState.IgnoreKeyRepeat && (HIWORD(lParam) & KF_REPEAT) )
+ if( (fgState.KeyRepeat==GLUT_KEY_REPEAT_OFF || window->State.IgnoreKeyRepeat==GL_TRUE) && (HIWORD(lParam) & KF_REPEAT) )
break;
fgState.Modifiers = fgGetWin32Modifiers( );