diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp index 1ac0428ca3..067fbabfc2 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingWidget.cpp @@ -173,19 +173,19 @@ QGroupBox* MappingWidget::CreateGroupBox(const QString& name, ControllerEmu::Con form_layout->insertRow(2, mouse_button); using ControllerEmu::Cursor; - connect(mouse_button, &QCheckBox::clicked, [this, group = static_cast(group)] { + connect(mouse_button, &QCheckBox::clicked, [this, grp = static_cast(group)] { std::string default_device = g_controller_interface.GetDefaultDeviceString() + ":"; const std::string controller_device = GetController()->GetDefaultDevice().ToString() + ":"; if (default_device == controller_device) { default_device.clear(); } - group->SetControlExpression(0, fmt::format("`{}Cursor Y-`", default_device)); - group->SetControlExpression(1, fmt::format("`{}Cursor Y+`", default_device)); - group->SetControlExpression(2, fmt::format("`{}Cursor X-`", default_device)); - group->SetControlExpression(3, fmt::format("`{}Cursor X+`", default_device)); + grp->SetControlExpression(0, fmt::format("`{}Cursor Y-`", default_device)); + grp->SetControlExpression(1, fmt::format("`{}Cursor Y+`", default_device)); + grp->SetControlExpression(2, fmt::format("`{}Cursor X-`", default_device)); + grp->SetControlExpression(3, fmt::format("`{}Cursor X+`", default_device)); - group->SetRelativeInput(false); + grp->SetRelativeInput(false); emit ConfigChanged(); GetController()->UpdateReferences(g_controller_interface);