Merge branch 'master' of github.com:rheit/zdoom

This commit is contained in:
Randy Heit 2014-12-26 15:17:20 -06:00
commit b30571b18e

View file

@ -739,6 +739,11 @@ IOKitJoystickManager* s_joystickManager;
void I_StartupJoysticks() void I_StartupJoysticks()
{ {
if (NULL != s_joystickManager)
{
return;
}
// HID Manager API is available on 10.5 (Darwin 9.x) or newer // HID Manager API is available on 10.5 (Darwin 9.x) or newer
if (darwinVersion.major >= 9) if (darwinVersion.major >= 9)
@ -750,6 +755,7 @@ void I_StartupJoysticks()
void I_ShutdownJoysticks() void I_ShutdownJoysticks()
{ {
delete s_joystickManager; delete s_joystickManager;
s_joystickManager = NULL;
} }
void I_GetJoysticks( TArray< IJoystickConfig* >& sticks ) void I_GetJoysticks( TArray< IJoystickConfig* >& sticks )