From e8dd4b8872dee0086e80c8a5b6bba81ec752d459 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Wed, 14 Feb 2018 19:35:43 +0300 Subject: [PATCH] no message --- src/system.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/system.c b/src/system.c index 70b2f59..62f824d 100644 --- a/src/system.c +++ b/src/system.c @@ -477,6 +477,8 @@ static void processJoysticks() { case 0: gamepad = &platform.gamepad.joystick.first; break; case 1: gamepad = &platform.gamepad.joystick.second; break; + case 2: gamepad = &platform.gamepad.joystick.third; break; + case 3: gamepad = &platform.gamepad.joystick.fourth; break; } if(gamepad) @@ -547,7 +549,7 @@ static void pollEvent() input->mouse.btns = 0; } - SDL_Event event; + static SDL_Event event; while(SDL_PollEvent(&event)) {