This commit is contained in:
Jinrong Xie 2016-01-18 23:25:47 -08:00
parent 13e6cf1591
commit 9dfba8b7de

View File

@ -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));
}
}