bug fix
(cherry picked from commit9dfba8b7de
) (cherry picked from commit9dfba8b7de
) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1789 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
be5e4ec604
commit
6f764746e1
@ -184,9 +184,9 @@ void fgSpaceballHandleWinEvent(HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||
unsigned long stateNow = dwKeystate&(1 << i);
|
||||
|
||||
if (stateBefore && !stateNow)
|
||||
INVOKE_WCB(*window, SpaceButton, (stateBefore, GLUT_DOWN));
|
||||
INVOKE_WCB(*window, SpaceButton, (stateBefore, GLUT_UP));
|
||||
if (!stateBefore && stateNow)
|
||||
INVOKE_WCB(*window, SpaceButton, (stateNow, GLUT_UP));
|
||||
INVOKE_WCB(*window, SpaceButton, (stateNow, GLUT_DOWN));
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user