From 581eb6a0552ffaac6f791876135f410f1eeb2e7d Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 22 May 2021 22:19:56 +0200 Subject: [PATCH] Fixed an issue where GuiDetectDevice wouldn't detect analog controller inputs. --- es-core/src/guis/GuiDetectDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-core/src/guis/GuiDetectDevice.cpp b/es-core/src/guis/GuiDetectDevice.cpp index 78dc50cd3..9b60b8a14 100644 --- a/es-core/src/guis/GuiDetectDevice.cpp +++ b/es-core/src/guis/GuiDetectDevice.cpp @@ -118,7 +118,8 @@ bool GuiDetectDevice::input(InputConfig* config, Input input) return true; } - if (input.type == TYPE_BUTTON || input.type == TYPE_KEY ||input.type == TYPE_CEC_BUTTON) { + if (input.type == TYPE_BUTTON || input.type == TYPE_AXIS || input.type == TYPE_KEY || + input.type == TYPE_CEC_BUTTON) { if (input.value && mHoldingConfig == nullptr) { // Started holding. mHoldingConfig = config;