mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00:00
WiimoteEmu: Implement MotionPlus parameter y0 and other cleanups.
This commit is contained in:
parent
59e1c83445
commit
4374600367
9 changed files with 298 additions and 205 deletions
|
@ -217,7 +217,7 @@ void MappingIndicator::DrawCursor(ControllerEmu::Cursor& cursor)
|
|||
QRectF(-scale, raw_coord.z * scale - INPUT_DOT_RADIUS / 2, scale * 2, INPUT_DOT_RADIUS));
|
||||
|
||||
// Adjusted Z (if not hidden):
|
||||
if (adj_coord.z && adj_coord.x < 10000)
|
||||
if (adj_coord.IsVisible())
|
||||
{
|
||||
p.setBrush(GetAdjustedInputColor());
|
||||
p.drawRect(
|
||||
|
@ -250,7 +250,7 @@ void MappingIndicator::DrawCursor(ControllerEmu::Cursor& cursor)
|
|||
p.drawEllipse(QPointF{raw_coord.x, raw_coord.y} * scale, INPUT_DOT_RADIUS, INPUT_DOT_RADIUS);
|
||||
|
||||
// Adjusted cursor position (if not hidden):
|
||||
if (adj_coord.x < 10000)
|
||||
if (adj_coord.IsVisible())
|
||||
{
|
||||
p.setPen(Qt::NoPen);
|
||||
p.setBrush(GetAdjustedInputColor());
|
||||
|
|
|
@ -55,7 +55,7 @@ void WiimoteEmuGeneral::CreateMainLayout()
|
|||
|
||||
extension->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
|
||||
static_cast<QFormLayout*>(extension->layout())->addRow(m_extension_combo);
|
||||
static_cast<QFormLayout*>(extension->layout())->insertRow(0, m_extension_combo);
|
||||
|
||||
layout->addWidget(extension, 0, 3);
|
||||
layout->addWidget(CreateGroupBox(tr("Rumble"), Wiimote::GetWiimoteGroup(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue