mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-05 02:03:58 +00:00
Windows build fixes
This was SVN commit r8845.
This commit is contained in:
@@ -697,6 +697,11 @@ int SDL_JoystickEventState(int UNUSED(state))
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char* SDL_JoystickName(int UNUSED(device_index))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SDL_Joystick* SDL_JoystickOpen(int UNUSED(device_index))
|
||||
{
|
||||
return NULL;
|
||||
@@ -1456,6 +1461,11 @@ int SDL_Init(Uint32 UNUSED(flags))
|
||||
return (ModuleInit(&initState, Init) < 0)? -1 : 0;
|
||||
}
|
||||
|
||||
int SDL_InitSubSystem(Uint32 UNUSED(flags))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
void SDL_Quit()
|
||||
{
|
||||
ModuleShutdown(&initState, Shutdown);
|
||||
|
||||
@@ -45,6 +45,7 @@ typedef u32 Uint32;
|
||||
#define SDL_INIT_NOPARACHUTE 0
|
||||
|
||||
LIB_API int SDL_Init(Uint32 flags);
|
||||
LIB_API int SDL_InitSubSystem(Uint32 flags);
|
||||
|
||||
LIB_API void SDL_Quit();
|
||||
|
||||
@@ -148,6 +149,7 @@ LIB_API Uint8* SDL_GetKeyState(int* num_keys);
|
||||
typedef void* SDL_Joystick;
|
||||
int SDL_NumJoysticks();
|
||||
int SDL_JoystickEventState(int state);
|
||||
const char* SDL_JoystickName(int device_index);
|
||||
SDL_Joystick* SDL_JoystickOpen(int device_index);
|
||||
int SDL_JoystickNumAxes(SDL_Joystick* joystick);
|
||||
Sint16 SDL_JoystickGetAxis(SDL_Joystick* joystick, int axis);
|
||||
|
||||
Reference in New Issue
Block a user