mirror of https://github.com/PCSX2/pcsx2.git
Qt: Fix mouse mapping setting not applying to input profiles
Closes #9914.
This commit is contained in:
parent
d25700e241
commit
f5684c43dd
|
@ -45,7 +45,7 @@ ControllerGlobalSettingsWidget::ControllerGlobalSettingsWidget(QWidget* parent,
|
|||
m_ui.enableSDLRawInput = nullptr;
|
||||
#endif
|
||||
|
||||
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.enableMouseMapping, "UI", "EnableMouseMapping", false);
|
||||
ControllerSettingWidgetBinder::BindWidgetToInputProfileBool(sif, m_ui.enableMouseMapping, "UI", "EnableMouseMapping", false);
|
||||
connect(m_ui.mouseSettings, &QToolButton::clicked, this, &ControllerGlobalSettingsWidget::mouseSettingsClicked);
|
||||
|
||||
ControllerSettingWidgetBinder::BindWidgetToInputProfileBool(sif, m_ui.multitapPort1, "Pad", "MultitapPort1", false);
|
||||
|
|
|
@ -177,7 +177,7 @@ void InputBindingDialog::startListeningForInput(u32 timeout_in_seconds)
|
|||
{
|
||||
m_value_ranges.clear();
|
||||
m_new_bindings.clear();
|
||||
m_mouse_mapping_enabled = InputBindingWidget::isMouseMappingEnabled();
|
||||
m_mouse_mapping_enabled = InputBindingWidget::isMouseMappingEnabled(m_sif);
|
||||
m_input_listen_start_position = QCursor::pos();
|
||||
m_input_listen_timer = new QTimer(this);
|
||||
m_input_listen_timer->setSingleShot(false);
|
||||
|
|
|
@ -56,9 +56,9 @@ InputBindingWidget::~InputBindingWidget()
|
|||
Q_ASSERT(!isListeningForInput());
|
||||
}
|
||||
|
||||
bool InputBindingWidget::isMouseMappingEnabled()
|
||||
bool InputBindingWidget::isMouseMappingEnabled(SettingsInterface* sif)
|
||||
{
|
||||
return Host::GetBaseBoolSettingValue("UI", "EnableMouseMapping", false);
|
||||
return sif ? sif->GetBoolValue("UI", "EnableMouseMapping", false) : Host::GetBaseBoolSettingValue("UI", "EnableMouseMapping", false);
|
||||
}
|
||||
|
||||
void InputBindingWidget::initialize(
|
||||
|
@ -305,7 +305,7 @@ void InputBindingWidget::startListeningForInput(u32 timeout_in_seconds)
|
|||
{
|
||||
m_value_ranges.clear();
|
||||
m_new_bindings.clear();
|
||||
m_mouse_mapping_enabled = isMouseMappingEnabled();
|
||||
m_mouse_mapping_enabled = isMouseMappingEnabled(m_sif);
|
||||
m_input_listen_start_position = QCursor::pos();
|
||||
m_input_listen_timer = new QTimer(this);
|
||||
m_input_listen_timer->setSingleShot(false);
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
QWidget* parent, SettingsInterface* sif, InputBindingInfo::Type bind_type, std::string section_name, std::string key_name);
|
||||
~InputBindingWidget();
|
||||
|
||||
static bool isMouseMappingEnabled();
|
||||
static bool isMouseMappingEnabled(SettingsInterface* sif);
|
||||
|
||||
void initialize(SettingsInterface* sif, InputBindingInfo::Type bind_type, std::string section_name, std::string key_name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue