mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
InputManager: SDL_NumJoysticks is a function, try calling it.
This commit is contained in:
@@ -40,14 +40,16 @@ InputManager::InputManager() {
|
||||
|
||||
|
||||
InputManager::~InputManager() {
|
||||
if (SDL_NumJoysticks > 0)
|
||||
if (SDL_NumJoysticks() > 0) {
|
||||
SDL_JoystickClose(joystick);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void InputManager::initJoystick() {
|
||||
if (SDL_NumJoysticks > 0)
|
||||
if (SDL_NumJoysticks() > 0) {
|
||||
joystick = SDL_JoystickOpen(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user