shithub: cstory

Download patch

ref: c26954a55942d9a72507109d1e9a8c34837cdd89
parent: 5d12071f17a7f759dd0ec0131bf80dc58e2e448c
parent: f36fc61de3dada74f5f5861db9a1c5addcc8242f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Mon Jan 6 13:38:22 EST 2020

Merge branch 'accurate' into portable

--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -8,11 +8,11 @@
 
 #include "WindowsWrapper.h"
 
-static SDL_Joystick *joystick;
+// 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;
 
-static int joystick_neutral_x;
-static int joystick_neutral_y;
-
 void ReleaseDirectInput(void)
 {
 	// Close opened joystick (if exists)
@@ -25,8 +25,6 @@
 	SDL_QuitSubSystem(SDL_INIT_JOYSTICK);
 }
 
-BOOL HookAllDirectInputDevices(void);
-
 BOOL InitDirectInput(void)
 {
 	SDL_InitSubSystem(SDL_INIT_JOYSTICK);
@@ -37,7 +35,7 @@
 	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;
--