git repos / blockattack-game

commit c257f027

Poul Sander · 2020-08-08 16:29
c257f0272505b1031c783e60f259b47f09b63457 patch · browse files
parent 3674f7f01b90316cc9d38acb03774a86d7ab618c

Switched to make "B" cancel instead of "Y"

Changed files

M source/code/MenuSystem.cpp before
diff --git a/source/code/MenuSystem.cpp b/source/code/MenuSystem.cpp index bfe9c80..1729eb0 100644 --- a/source/code/MenuSystem.cpp +++ b/source/code/MenuSystem.cpp
@@ -208,7 +208,7 @@ bool isEscapeEvent(const SDL_Event& event) {
}
}
if (event.type == SDL_CONTROLLERBUTTONDOWN) {
- if (event.cbutton.button == SDL_CONTROLLER_BUTTON_Y || event.cbutton.button == SDL_CONTROLLER_BUTTON_BACK ) {
+ if (event.cbutton.button == SDL_CONTROLLER_BUTTON_B || event.cbutton.button == SDL_CONTROLLER_BUTTON_BACK ) {
return true;
}
}
@@ -222,7 +222,7 @@ bool isConfirmEvent(const SDL_Event& event) {
}
}
if (event.type == SDL_CONTROLLERBUTTONDOWN) {
- if (event.cbutton.button == SDL_CONTROLLER_BUTTON_A || event.cbutton.button == SDL_CONTROLLER_BUTTON_B ) {
+ if (event.cbutton.button == SDL_CONTROLLER_BUTTON_A ) {
return true;
}
}