shithub: choc

Download patch

ref: 414b71b290bb833d1d3b34ab0b76127203c9417d
parent: a98b31b018f5835889b3e6d2afe3d5f6789ea258
author: Simon Howard <[email protected]>
date: Fri Nov 28 14:38:07 EST 2014

Update joystick code to use SDL2 API.

SDL_JoystickName() API changed to take a SDL_Joystick handle instead
of an index.

--- a/src/i_joystick.c
+++ b/src/i_joystick.c
@@ -153,7 +153,7 @@
 
     // Initialized okay!
 
-    printf("I_InitJoystick: %s\n", SDL_JoystickName(joystick_index));
+    printf("I_InitJoystick: %s\n", SDL_JoystickName(joystick));
 
     I_AtExit(I_ShutdownJoystick, true);
 }