Moving the Windows-specific joystick definitions into the Windows-specific header...
authorJohn F. Fay <johnffay@nettally.com>
Sun, 29 Jan 2012 05:26:54 +0000 (05:26 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Sun, 29 Jan 2012 05:26:54 +0000 (05:26 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1026 7f0cb862-5218-0410-a997-914c9d46530a

src/Common/freeglut_internal.h
src/mswin/freeglut_internal_mswin.h

index 68466c4..7199da7 100644 (file)
@@ -813,17 +813,6 @@ struct tagSFG_PlatformJoystick
 };\r
 #endif\r
 \r
 };\r
 #endif\r
 \r
-#if TARGET_HOST_MS_WINDOWS && !defined(_WIN32_WCE)\r
-#    define _JS_MAX_AXES  8\r
-typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;\r
-struct tagSFG_PlatformJoystick\r
-{\r
-    JOYCAPS     jsCaps;\r
-    JOYINFOEX   js;\r
-    UINT        js_id;\r
-};\r
-#endif\r
-\r
 #if TARGET_HOST_POSIX_X11\r
 #    define _JS_MAX_AXES 16\r
 typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;\r
 #if TARGET_HOST_POSIX_X11\r
 #    define _JS_MAX_AXES 16\r
 typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;\r
index c83f231..4f8aaba 100644 (file)
@@ -49,6 +49,20 @@ struct tagSFG_PlatformContext
 };\r
 \r
 \r
 };\r
 \r
 \r
+/* Joystick-Specific Definitions */\r
+#if !defined(_WIN32_WCE)\r
+#    define _JS_MAX_AXES  8\r
+typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;\r
+struct tagSFG_PlatformJoystick\r
+{\r
+    JOYCAPS     jsCaps;\r
+    JOYINFOEX   js;\r
+    UINT        js_id;\r
+};\r
+#endif\r
+\r
+\r
+\r
 /* Function to be called on exit */\r
 extern void (__cdecl *__glutExitFunc)( int return_value );\r
 \r
 /* Function to be called on exit */\r
 extern void (__cdecl *__glutExitFunc)( int return_value );\r
 \r