From 282470e3128c7d67f36bc93447f56a7f24f13c0e Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 17 Nov 2019 16:41:06 -0600 Subject: [PATCH] DolphinQt: Fix accelerometer mapping indicator flipped X axis. --- Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp index 735c864a2d..d8fa5aaaaa 100644 --- a/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt/Config/Mapping/MappingIndicator.cpp @@ -716,8 +716,8 @@ void AccelerometerMappingIndicator::paintEvent(QPaintEvent*) p.setPen(GetBBoxPen()); p.drawRect(-scale - 1, -scale - 1, scale * 2 + 1, scale * 2 + 1); - // UI y-axis is opposite that of acceleration Z. - p.scale(1.0, -1.0); + // UI axes are opposite that of Wii remote accelerometer. + p.scale(-1.0, -1.0); // Enable AA after drawing bounding box. p.setRenderHint(QPainter::Antialiasing, true); @@ -780,7 +780,7 @@ void AccelerometerMappingIndicator::paintEvent(QPaintEvent*) // G-force text: p.setPen(GetTextColor()); - p.scale(1.0, -1.0); + p.scale(-1.0, -1.0); p.drawText(QRectF(-2, 0, scale, scale), Qt::AlignBottom | Qt::AlignRight, QString::fromStdString( // i18n: "g" is the symbol for "gravitational force equivalent" (g-force).