mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 11:50:50 +00:00
Swap out SDL_INIT_JOYSTICK for SDL_INIT_GAMECONTROLLER
First step in improving controller support.
This commit is contained in:
parent
b03d87c80a
commit
e51ed406ac
1 changed files with 1 additions and 1 deletions
|
@ -1060,7 +1060,7 @@ static int joy_open(const char *fname)
|
|||
|
||||
if (joystick_started == 0 && joystick2_started == 0 && joystick3_started == 0 && joystick4_started == 0)
|
||||
{
|
||||
if (SDL_InitSubSystem(SDL_INIT_JOYSTICK) == -1)
|
||||
if (SDL_InitSubSystem(SDL_INIT_GAMECONTROLLER) == -1)
|
||||
{
|
||||
CONS_Printf(M_GetText("Couldn't initialize joystick: %s\n"), SDL_GetError());
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue