From 3a08eee1d66c7afd534e08beec54bb3b9db2d3b9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 3 Aug 2020 13:15:53 +0200 Subject: [PATCH] Fixed an annoying gamepad configuration issue. --- es-core/src/guis/GuiInputConfig.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/es-core/src/guis/GuiInputConfig.cpp b/es-core/src/guis/GuiInputConfig.cpp index f90d9d409..7d6d94f1e 100755 --- a/es-core/src/guis/GuiInputConfig.cpp +++ b/es-core/src/guis/GuiInputConfig.cpp @@ -407,7 +407,12 @@ bool GuiInputConfig::filterTrigger(Input input, InputConfig* config, int inputId // button functions in ES for instance. It's probably necessary to update ES to use the SDL // GameController API to fix this properly. if (input.type == TYPE_AXIS && (input.id == 2 || input.id == 4 || input.id == 5)) { - if (std::string(GUI_INPUT_CONFIG_LIST[inputId].name).find("Trigger") != std::string::npos) { + if (!(std::string(GUI_INPUT_CONFIG_LIST[inputId].name).find("Trigger") != + std::string::npos)) { + return false; + } + else if (std::string(GUI_INPUT_CONFIG_LIST[inputId].name).find("Trigger") != + std::string::npos) { if (input.value == 1) mSkipAxis = true; else if (input.value == -1)