From d957c40649890ef0ee40fe46b422198dbeb88fcf Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 4 Apr 2020 19:04:20 +0100 Subject: [PATCH] Fix bug --- src/Backends/GLFW3/Controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/GLFW3/Controller.cpp b/src/Backends/GLFW3/Controller.cpp index 20553e1b..2810c7d2 100644 --- a/src/Backends/GLFW3/Controller.cpp +++ b/src/Backends/GLFW3/Controller.cpp @@ -25,7 +25,7 @@ static void JoystickCallback(int joystick_id, int event) if (!joystick_connected) { int total_axis; - const float *axis = glfwGetJoystickAxes(connected_joystick_id, &total_axis); + const float *axis = glfwGetJoystickAxes(joystick_id, &total_axis); if (total_axis >= 2) {