mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix SDL 1.2 build
This commit is contained in:
parent
71995f77d5
commit
3b0ff3ea56
|
@ -272,8 +272,8 @@ void InputController::setPreferredGamepad(uint32_t type, int index) {
|
|||
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));
|
||||
|
|
Loading…
Reference in New Issue