From e51ed406ac22e56ef7dfd1395ccd60a4babf96b9 Mon Sep 17 00:00:00 2001 From: wolfy852 Date: Fri, 23 Nov 2018 00:01:20 -0600 Subject: [PATCH] Swap out SDL_INIT_JOYSTICK for SDL_INIT_GAMECONTROLLER First step in improving controller support. --- src/sdl/i_system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 03543c30..6f616271 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -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;