bug fix
authorJinrong Xie <jrxie@ucdavis.edu>
Wed, 20 Jan 2016 19:48:49 +0000 (19:48 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Wed, 20 Jan 2016 19:48:49 +0000 (19:48 +0000)
(cherry picked from commit 9dfba8b7de677ee4deaeb1b64d4a426ca7a24260)

(cherry picked from commit 9dfba8b7de677ee4deaeb1b64d4a426ca7a24260)

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1789 7f0cb862-5218-0410-a997-914c9d46530a

src/mswin/fg_spaceball_mswin.c

index 00e42f6..0dfa3e9 100644 (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));
 
                                        }
                                }