shithub: cstory

Download patch

ref: 182f11f0178b8ee1f4c624015f241dcbc87d9402
parent: 09ed7a9a9f55efa0f10428e7ac00db15fcf7b5fd
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Sep 11 13:51:20 EDT 2019

Fix controller support

Pressing up or down wouldn't work.

--- a/src/Input.cpp
+++ b/src/Input.cpp
@@ -80,7 +80,7 @@
 	else if (joystick_x > joystick_neutral_x + 10000)
 		status->bRight = TRUE;
 
-	const Sint16 joystick_y = SDL_JoystickGetAxis(joystick, 0);
+	const Sint16 joystick_y = SDL_JoystickGetAxis(joystick, 1);
 	if (joystick_y < joystick_neutral_y - 10000)
 		status->bUp = TRUE;
 	else if (joystick_y > joystick_neutral_y + 10000)
--