From e4127187e0e5de9c94a92301b4dc780bc9153fb8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Wed, 13 Jun 2007 19:12:13 +0000 Subject: Working joystick code. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 903 --- src/i_joystick.c | 2 ++ src/i_video.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3