summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/i_joystick.c2
-rw-r--r--src/i_video.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/i_joystick.c b/src/i_joystick.c
index 0e0f7590..3eb9069d 100644
--- a/src/i_joystick.c
+++ b/src/i_joystick.c
@@ -108,6 +108,8 @@ void I_InitJoystick(void)
SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
}
+ SDL_JoystickEventState(SDL_ENABLE);
+
// Initialised okay!
printf("I_InitJoystick: %s\n", SDL_JoystickName(joystick_index));
diff --git a/src/i_video.c b/src/i_video.c
index 39208ec3..0dfccfa3 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -555,6 +555,8 @@ void I_StartTic (void)
{
I_ReadMouse();
}
+
+ I_UpdateJoystick();
}