Skip to content

Commit

Permalink
Add an environment variable opt-out for the gamepad quit combo
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Oct 25, 2022
1 parent 3da505c commit c8aeca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/streaming/input/gamepad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void SdlInputHandler::handleControllerButtonEvent(SDL_ControllerButtonEvent* eve
}

// Handle Start+Select+L1+R1 as a gamepad quit combo
if (state->buttons == (PLAY_FLAG | BACK_FLAG | LB_FLAG | RB_FLAG)) {
if (state->buttons == (PLAY_FLAG | BACK_FLAG | LB_FLAG | RB_FLAG) && qgetenv("NO_GAMEPAD_QUIT") != "1") {
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
"Detected quit gamepad button combo");

Expand Down

0 comments on commit c8aeca8

Please sign in to comment.