Skip to content

Commit

Permalink
application/Application: some more gamepad, works for gamepad now and…
Browse files Browse the repository at this point in the history
… GUIS, unfortunatly i dont have a joystick, lets do this later(2)
  • Loading branch information
andreasdr committed Nov 5, 2023
1 parent d7da279 commit 9d1b938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tdme/application/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ void Application::updateGamepadInput(int joystickIdx) {
}
};
//
if (glfwGetGamepadState(GLFW_JOYSTICK_1, &gamepadState) == true) {
if (glfwGetGamepadState(joystickIdx, &gamepadState) == true) {
// left
handleButton(GLFW_GAMEPAD_BUTTON_DPAD_LEFT, KEYBOARD_KEYCODE_LEFT);
// right
Expand Down

0 comments on commit 9d1b938

Please sign in to comment.