Resolved bug #869765 glutIgnoreKeyRepeat() Fix (Win32)
glutIgnoreKeyRepeat now behaves correctly on Win32 git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@472 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
7542599aa9
commit
9e4156f49f
@ -1565,7 +1565,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
|
|||||||
int keypress = -1;
|
int keypress = -1;
|
||||||
POINT mouse_pos ;
|
POINT mouse_pos ;
|
||||||
|
|
||||||
if( fgState.IgnoreKeyRepeat && (lParam & KF_REPEAT) )
|
if( fgState.IgnoreKeyRepeat && (HIWORD(lParam) & KF_REPEAT) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1714,7 +1714,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
|
|||||||
case WM_SYSCHAR:
|
case WM_SYSCHAR:
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
{
|
{
|
||||||
if( fgState.IgnoreKeyRepeat && (lParam & KF_REPEAT) )
|
if( fgState.IgnoreKeyRepeat && (HIWORD(lParam) & KF_REPEAT) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
fgState.Modifiers = fgGetWin32Modifiers( );
|
fgState.Modifiers = fgGetWin32Modifiers( );
|
||||||
|
Reference in New Issue
Block a user