Moving the Windows-specific joystick definitions into the Windows-specific header file
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1026 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
ce296d938e
commit
7a945281b1
@ -813,17 +813,6 @@ struct tagSFG_PlatformJoystick
|
||||
};
|
||||
#endif
|
||||
|
||||
#if TARGET_HOST_MS_WINDOWS && !defined(_WIN32_WCE)
|
||||
# define _JS_MAX_AXES 8
|
||||
typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;
|
||||
struct tagSFG_PlatformJoystick
|
||||
{
|
||||
JOYCAPS jsCaps;
|
||||
JOYINFOEX js;
|
||||
UINT js_id;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if TARGET_HOST_POSIX_X11
|
||||
# define _JS_MAX_AXES 16
|
||||
typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;
|
||||
|
@ -49,6 +49,20 @@ struct tagSFG_PlatformContext
|
||||
};
|
||||
|
||||
|
||||
/* Joystick-Specific Definitions */
|
||||
#if !defined(_WIN32_WCE)
|
||||
# define _JS_MAX_AXES 8
|
||||
typedef struct tagSFG_PlatformJoystick SFG_PlatformJoystick;
|
||||
struct tagSFG_PlatformJoystick
|
||||
{
|
||||
JOYCAPS jsCaps;
|
||||
JOYINFOEX js;
|
||||
UINT js_id;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* Function to be called on exit */
|
||||
extern void (__cdecl *__glutExitFunc)( int return_value );
|
||||
|
||||
|
Reference in New Issue
Block a user