From 67765fd0ad5b2804c0906d0c44864fe9ec45a146 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sun, 5 Apr 2020 00:54:45 +0100 Subject: [PATCH] Fix --- 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 8a0de9c2..8ce20273 100644 --- a/src/Backends/GLFW3/Controller.cpp +++ b/src/Backends/GLFW3/Controller.cpp @@ -29,7 +29,7 @@ static void JoystickCallback(int joystick_id, int event) const float *axes = glfwGetJoystickAxes(joystick_id, &total_axes); int total_buttons; - const unsigned char *buttons = glfwGetJoystickButtons(connected_joystick_id, &total_buttons); + const unsigned char *buttons = glfwGetJoystickButtons(joystick_id, &total_buttons); if (total_axes >= 2 && total_buttons >= 6) {