mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Control mapping UI: Fix bug where we warn about combo mappings unnecessarily for axis input
This commit is contained in:
@@ -423,7 +423,8 @@ void KeyMappingNewKeyDialog::axis(const AxisInput &axis) {
|
||||
InputMapping mapping(axis.deviceId, axis.axisId, 1);
|
||||
triggeredAxes_.insert(mapping);
|
||||
if (!g_Config.bAllowMappingCombos && !mapping_.mappings.empty()) {
|
||||
comboMappingsNotEnabled_->SetVisibility(UI::V_VISIBLE);
|
||||
if (mapping_.mappings.size() == 1 && mapping != mapping_.mappings[0])
|
||||
comboMappingsNotEnabled_->SetVisibility(UI::V_VISIBLE);
|
||||
} else if (!mapping_.mappings.contains(mapping)) {
|
||||
mapping_.mappings.push_back(mapping);
|
||||
RecreateViews();
|
||||
@@ -432,7 +433,8 @@ void KeyMappingNewKeyDialog::axis(const AxisInput &axis) {
|
||||
InputMapping mapping(axis.deviceId, axis.axisId, -1);
|
||||
triggeredAxes_.insert(mapping);
|
||||
if (!g_Config.bAllowMappingCombos && !mapping_.mappings.empty()) {
|
||||
comboMappingsNotEnabled_->SetVisibility(UI::V_VISIBLE);
|
||||
if (mapping_.mappings.size() == 1 && mapping != mapping_.mappings[0])
|
||||
comboMappingsNotEnabled_->SetVisibility(UI::V_VISIBLE);
|
||||
} else if (!mapping_.mappings.contains(mapping)) {
|
||||
mapping_.mappings.push_back(mapping);
|
||||
RecreateViews();
|
||||
|
||||
Reference in New Issue
Block a user