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) {