foxygit / doom Log in
commit 414b71b290bb833d1d3b34ab0b76127203c9417d
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Fri Nov 28 19:38:07 2014 -0500
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Fri Nov 28 19:38:07 2014 -0500

    Update joystick code to use SDL2 API.

    SDL_JoystickName() API changed to take a SDL_Joystick handle instead
    of an index.
---
 src/i_joystick.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/i_joystick.c b/src/i_joystick.c
index 06531a0b..1215a257 100644
--- a/src/i_joystick.c
+++ b/src/i_joystick.c
@@ -153,7 +153,7 @@ void I_InitJoystick(void)

     // Initialized okay!

-    printf("I_InitJoystick: %s\n", SDL_JoystickName(joystick_index));
+    printf("I_InitJoystick: %s\n", SDL_JoystickName(joystick));

     I_AtExit(I_ShutdownJoystick, true);
 }