commit 4bdfd2a5efd2151d32275cb48e96ac1e981bbfb9
parent 90c8e671a8ffc1b4f3aff3c04b0b3c80f87f59b8
Author: Amin Mesbah <mesbahamin@gmail.com>
Date: Tue, 24 Oct 2017 22:40:14 -0700
Fix scary bug caused by uninitialized variables
Sometimes the axes would start with absurd values.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/platform_sdl.c b/src/platform_sdl.c
@@ -244,8 +244,8 @@ int main(int argc, char *argv[])
struct GameControllerInput controller_input;
controller_input.controller_index = 0;
controller_input.left_stick_x = 0;
- controller_input.right_stick_y = 0;
- controller_input.left_stick_x = 0;
+ controller_input.left_stick_y = 0;
+ controller_input.right_stick_x = 0;
controller_input.right_stick_y = 0;
while (running)