Minor fix on indentation.
[freeglut] / src / mswin / fg_main_mswin.c
index 54ec12c..b384b08 100644 (file)
@@ -1543,6 +1543,14 @@ LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPAR
                break;
        }
 #endif
+    //Added by Jinrong Xie (stonexjr@gmail.com) 12/24/2014
+    //for SpaceNavigator support on Windows.
+       case WM_INPUT:
+               if (fgHasSpaceball())
+               {
+                       fgSpaceballHandleWinEvent(hWnd, wParam, lParam);
+               }
+               break;
     default:
         /* Handle unhandled messages */
         lRet = DefWindowProc( hWnd, uMsg, wParam, lParam );