mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
WiimoteEmu/DolphinQt: Rename "IR" to "Point" and eliminate redundant Forward/Backward mappings.
This commit is contained in:
@ -212,29 +212,6 @@ void MappingIndicator::DrawCursor(ControllerEmu::Cursor& cursor)
|
||||
return;
|
||||
}
|
||||
|
||||
// Deadzone for Z (forward/backward):
|
||||
const double deadzone = cursor.GetDeadzonePercentage();
|
||||
if (deadzone > 0.0)
|
||||
{
|
||||
p.setPen(GetDeadZonePen());
|
||||
p.setBrush(GetDeadZoneBrush());
|
||||
p.drawRect(QRectF(-scale, -deadzone * scale, scale * 2, deadzone * scale * 2));
|
||||
}
|
||||
|
||||
// Raw Z:
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(GetRawInputColor());
|
||||
p.drawRect(
|
||||
QRectF(-scale, raw_coord.z * scale - INPUT_DOT_RADIUS / 2, scale * 2, INPUT_DOT_RADIUS));
|
||||
|
||||
// Adjusted Z (if not hidden):
|
||||
if (adj_coord.IsVisible())
|
||||
{
|
||||
p.setBrush(GetAdjustedInputColor());
|
||||
p.drawRect(
|
||||
QRectF(-scale, adj_coord.z * scale - INPUT_DOT_RADIUS / 2, scale * 2, INPUT_DOT_RADIUS));
|
||||
}
|
||||
|
||||
// TV screen or whatever you want to call this:
|
||||
constexpr double TV_SCALE = 0.75;
|
||||
|
||||
|
@ -51,6 +51,11 @@ int MappingWidget::GetPort() const
|
||||
return m_parent->GetPort();
|
||||
}
|
||||
|
||||
QGroupBox* MappingWidget::CreateGroupBox(ControllerEmu::ControlGroup* group)
|
||||
{
|
||||
return CreateGroupBox(tr(group->ui_name.c_str()), group);
|
||||
}
|
||||
|
||||
QGroupBox* MappingWidget::CreateGroupBox(const QString& name, ControllerEmu::ControlGroup* group)
|
||||
{
|
||||
QGroupBox* group_box = new QGroupBox(name);
|
||||
|
@ -55,6 +55,8 @@ signals:
|
||||
|
||||
protected:
|
||||
int GetPort() const;
|
||||
|
||||
QGroupBox* CreateGroupBox(ControllerEmu::ControlGroup* group);
|
||||
QGroupBox* CreateGroupBox(const QString& name, ControllerEmu::ControlGroup* group);
|
||||
|
||||
private:
|
||||
|
@ -348,8 +348,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
|
||||
widget = new WiimoteEmuGeneral(this, extension);
|
||||
setWindowTitle(tr("Wii Remote %1").arg(GetPort() + 1));
|
||||
AddWidget(tr("General and Options"), widget);
|
||||
// i18n: IR stands for infrared and refers to the pointer functionality of Wii Remotes
|
||||
AddWidget(tr("Motion Controls and IR"), new WiimoteEmuMotionControl(this));
|
||||
AddWidget(tr("Motion Controls"), new WiimoteEmuMotionControl(this));
|
||||
AddWidget(tr("Extension"), extension);
|
||||
break;
|
||||
}
|
||||
|
@ -23,14 +23,14 @@ void WiimoteEmuMotionControl::CreateMainLayout()
|
||||
{
|
||||
m_main_layout = new QHBoxLayout();
|
||||
|
||||
m_main_layout->addWidget(CreateGroupBox(
|
||||
tr("Shake"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Shake)));
|
||||
m_main_layout->addWidget(
|
||||
CreateGroupBox(tr("IR"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::IR)));
|
||||
m_main_layout->addWidget(CreateGroupBox(
|
||||
tr("Tilt"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Tilt)));
|
||||
m_main_layout->addWidget(CreateGroupBox(
|
||||
tr("Swing"), Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Swing)));
|
||||
CreateGroupBox(Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Shake)));
|
||||
m_main_layout->addWidget(
|
||||
CreateGroupBox(Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Point)));
|
||||
m_main_layout->addWidget(
|
||||
CreateGroupBox(Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Tilt)));
|
||||
m_main_layout->addWidget(
|
||||
CreateGroupBox(Wiimote::GetWiimoteGroup(GetPort(), WiimoteEmu::WiimoteGroup::Swing)));
|
||||
|
||||
setLayout(m_main_layout);
|
||||
}
|
||||
|
Reference in New Issue
Block a user