Swap out SDL_INIT_JOYSTICK for SDL_INIT_GAMECONTROLLER

First step in improving controller support.
This commit is contained in:
wolfy852 2018-11-23 00:01:20 -06:00
parent b03d87c80a
commit e51ed406ac

View file

@ -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;