Fixed an issue where GuiDetectDevice wouldn't detect analog controller inputs.

This commit is contained in:
Leon Styhre 2021-05-22 22:19:56 +02:00
parent 0bde8dc79d
commit 581eb6a055

View file

@ -118,7 +118,8 @@ bool GuiDetectDevice::input(InputConfig* config, Input input)
return true; 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) { if (input.value && mHoldingConfig == nullptr) {
// Started holding. // Started holding.
mHoldingConfig = config; mHoldingConfig = config;