mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #17693 from hrydgard/combo-map-bug-fix
Bugfix: Also check the allow-combo setting for analog inputs.
This commit is contained in:
commit
c5acb32aca
1 changed files with 6 additions and 2 deletions
|
@ -446,14 +446,18 @@ void KeyMappingNewKeyDialog::axis(const AxisInput &axis) {
|
|||
if (axis.value > AXIS_BIND_THRESHOLD) {
|
||||
InputMapping mapping(axis.deviceId, axis.axisId, 1);
|
||||
triggeredAxes_.insert(mapping);
|
||||
if (!mapping_.mappings.contains(mapping)) {
|
||||
if (!g_Config.bAllowMappingCombos && !mapping_.mappings.empty()) {
|
||||
comboMappingsNotEnabled_->SetVisibility(UI::V_VISIBLE);
|
||||
} else if (!mapping_.mappings.contains(mapping)) {
|
||||
mapping_.mappings.push_back(mapping);
|
||||
RecreateViews();
|
||||
}
|
||||
} else if (axis.value < -AXIS_BIND_THRESHOLD) {
|
||||
InputMapping mapping(axis.deviceId, axis.axisId, -1);
|
||||
triggeredAxes_.insert(mapping);
|
||||
if (!mapping_.mappings.contains(mapping)) {
|
||||
if (!g_Config.bAllowMappingCombos && !mapping_.mappings.empty()) {
|
||||
comboMappingsNotEnabled_->SetVisibility(UI::V_VISIBLE);
|
||||
} else if (!mapping_.mappings.contains(mapping)) {
|
||||
mapping_.mappings.push_back(mapping);
|
||||
RecreateViews();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue