Qt: Fix SDL 1.2 build
Crestwave crest.wave@yahoo.com
Sun, 01 Mar 2020 09:51:21 +0800
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/qt/InputController.cpp
→
src/platform/qt/InputController.cpp
@@ -272,8 +272,8 @@ if (!m_config) {
return; } #ifdef BUILD_SDL - char name[34] = {0}; #if SDL_VERSION_ATLEAST(2, 0, 0) + char name[34] = {0}; SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(SDL_JoystickListGetPointer(&s_sdlEvents.joysticks, index)->joystick), name, sizeof(name)); #else const char* name = SDL_JoystickName(SDL_JoystickIndex(SDL_JoystickListGetPointer(&s_sdlEvents.joysticks, index)->joystick));