MappingWidget: Fix shadowed variable warning.
This commit is contained in:
parent
d19304dc15
commit
d8cf835f07
|
@ -173,19 +173,19 @@ QGroupBox* MappingWidget::CreateGroupBox(const QString& name, ControllerEmu::Con
|
||||||
form_layout->insertRow(2, mouse_button);
|
form_layout->insertRow(2, mouse_button);
|
||||||
|
|
||||||
using ControllerEmu::Cursor;
|
using ControllerEmu::Cursor;
|
||||||
connect(mouse_button, &QCheckBox::clicked, [this, group = static_cast<Cursor*>(group)] {
|
connect(mouse_button, &QCheckBox::clicked, [this, grp = static_cast<Cursor*>(group)] {
|
||||||
std::string default_device = g_controller_interface.GetDefaultDeviceString() + ":";
|
std::string default_device = g_controller_interface.GetDefaultDeviceString() + ":";
|
||||||
const std::string controller_device = GetController()->GetDefaultDevice().ToString() + ":";
|
const std::string controller_device = GetController()->GetDefaultDevice().ToString() + ":";
|
||||||
if (default_device == controller_device)
|
if (default_device == controller_device)
|
||||||
{
|
{
|
||||||
default_device.clear();
|
default_device.clear();
|
||||||
}
|
}
|
||||||
group->SetControlExpression(0, fmt::format("`{}Cursor Y-`", default_device));
|
grp->SetControlExpression(0, fmt::format("`{}Cursor Y-`", default_device));
|
||||||
group->SetControlExpression(1, fmt::format("`{}Cursor Y+`", default_device));
|
grp->SetControlExpression(1, fmt::format("`{}Cursor Y+`", default_device));
|
||||||
group->SetControlExpression(2, fmt::format("`{}Cursor X-`", default_device));
|
grp->SetControlExpression(2, fmt::format("`{}Cursor X-`", default_device));
|
||||||
group->SetControlExpression(3, fmt::format("`{}Cursor X+`", default_device));
|
grp->SetControlExpression(3, fmt::format("`{}Cursor X+`", default_device));
|
||||||
|
|
||||||
group->SetRelativeInput(false);
|
grp->SetRelativeInput(false);
|
||||||
|
|
||||||
emit ConfigChanged();
|
emit ConfigChanged();
|
||||||
GetController()->UpdateReferences(g_controller_interface);
|
GetController()->UpdateReferences(g_controller_interface);
|
||||||
|
|
Loading…
Reference in New Issue