diff --git a/src/Input.cpp b/src/Input.cpp index 219b2e99..58f8e6af 100644 --- a/src/Input.cpp +++ b/src/Input.cpp @@ -8,10 +8,10 @@ #include "WindowsWrapper.h" -static SDL_Joystick *joystick; - -static int joystick_neutral_x; -static int joystick_neutral_y; +// The original names for these variables are unknown +static SDL_Joystick *joystick = NULL; +static int joystick_neutral_x = 0; +static int joystick_neutral_y = 0; void ReleaseDirectInput(void) { @@ -25,8 +25,6 @@ void ReleaseDirectInput(void) SDL_QuitSubSystem(SDL_INIT_JOYSTICK); } -BOOL HookAllDirectInputDevices(void); - BOOL InitDirectInput(void) { SDL_InitSubSystem(SDL_INIT_JOYSTICK); @@ -37,7 +35,7 @@ BOOL InitDirectInput(void) return TRUE; } -// The original name for this function is unknown +// The original name for this function and its variables are unknown BOOL HookAllDirectInputDevices(void) { int i;