mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-14 00:58:51 +02:00
DolphinQt/Mapping: Clear and skip "Modifier" iterative input mappings when using
analog inputs.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user