Skip to content

Commit

Permalink
Switch start and back buttons on controller
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkwouter committed Apr 21, 2022
1 parent d345869 commit ad92ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Window.cpp
Expand Up @@ -138,7 +138,7 @@ Input Window::getInputForControllerButton(Uint8 button) {
input = Input::FIRE;
break;

case SDL_CONTROLLER_BUTTON_BACK:
case SDL_CONTROLLER_BUTTON_START:
input = Input::RESTART;
break;

Expand All @@ -154,7 +154,7 @@ Input Window::getInputForControllerButton(Uint8 button) {
input = Input::HELP;
break;

case SDL_CONTROLLER_BUTTON_START:
case SDL_CONTROLLER_BUTTON_BACK:
input = Input::EXIT;
break;

Expand Down

0 comments on commit ad92ca0

Please sign in to comment.