DolphinQt/Mapping: Clear and skip "Modifier" iterative input mappings when using

analog inputs.
This commit is contained in:
Jordan Woyak
2025-02-07 00:36:52 -06:00
parent 3189de6c7a
commit 66624abb12
4 changed files with 72 additions and 23 deletions

View File

@ -65,8 +65,9 @@ static QString RefToDisplayString(ControlReference* ref)
return expression;
}
MappingButton::MappingButton(MappingWidget* parent, ControlReference* ref)
: ElidedButton(RefToDisplayString(ref)), m_mapping_window(parent->GetParent()), m_reference(ref)
MappingButton::MappingButton(MappingWidget* parent, ControlReference* ref, ControlType control_type)
: ElidedButton{RefToDisplayString(ref)}, m_mapping_window{parent->GetParent()},
m_reference{ref}, m_control_type{control_type}
{
if (m_reference->IsInput())
{
@ -141,3 +142,8 @@ ControlReference* MappingButton::GetControlReference()
{
return m_reference;
}
auto MappingButton::GetControlType() const -> ControlType
{
return m_control_type;
}