mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
legoinputmanager: Don't set default value for numJoysticks
Fixes joysticks not working
This commit is contained in:
parent
a258a89b1f
commit
94a9f93158
@ -152,7 +152,7 @@ MxResult LegoInputManager::GetJoystick()
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
MxS32 numJoysticks = 0;
|
||||
MxS32 numJoysticks;
|
||||
if (m_joyids == NULL) {
|
||||
m_joyids = SDL_GetJoysticks(&numJoysticks);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user