summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-05-08 19:46:50 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-05-08 20:06:39 +0200
commite1838f51a3538fcbce6a43189b219df137d60f27 (patch)
tree644d085525871f495da4e1e06cc141db8a34cc09 /src
parentcore: hid: Allow to calibrate gyro sensor (diff)
downloadyuzu-e1838f51a3538fcbce6a43189b219df137d60f27.tar
yuzu-e1838f51a3538fcbce6a43189b219df137d60f27.tar.gz
yuzu-e1838f51a3538fcbce6a43189b219df137d60f27.tar.bz2
yuzu-e1838f51a3538fcbce6a43189b219df137d60f27.tar.lz
yuzu-e1838f51a3538fcbce6a43189b219df137d60f27.tar.xz
yuzu-e1838f51a3538fcbce6a43189b219df137d60f27.tar.zst
yuzu-e1838f51a3538fcbce6a43189b219df137d60f27.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/configuration/configure_input_player_widget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/yuzu/configuration/configure_input_player_widget.cpp b/src/yuzu/configuration/configure_input_player_widget.cpp
index fe1ee2289..a188eef92 100644
--- a/src/yuzu/configuration/configure_input_player_widget.cpp
+++ b/src/yuzu/configuration/configure_input_player_widget.cpp
@@ -582,9 +582,9 @@ void PlayerControlPreview::DrawDualController(QPainter& p, const QPointF center)
using namespace Settings::NativeMotion;
p.setPen(colors.outline);
p.setBrush(colors.transparent);
- Draw3dCube(p, center + QPointF(-180, -5),
+ Draw3dCube(p, center + QPointF(-180, 90),
motion_values[Settings::NativeMotion::MotionLeft].euler, 20.0f);
- Draw3dCube(p, center + QPointF(180, -5),
+ Draw3dCube(p, center + QPointF(180, 90),
motion_values[Settings::NativeMotion::MotionRight].euler, 20.0f);
}
@@ -2926,14 +2926,14 @@ void PlayerControlPreview::DrawArrow(QPainter& p, const QPointF center, const Di
void PlayerControlPreview::Draw3dCube(QPainter& p, QPointF center, const Common::Vec3f& euler,
float size) {
std::array<Common::Vec3f, 8> cube{
- Common::Vec3f{-1, -1, -1},
- {-1, 1, -1},
- {1, 1, -1},
- {1, -1, -1},
- {-1, -1, 1},
- {-1, 1, 1},
- {1, 1, 1},
- {1, -1, 1},
+ Common::Vec3f{-0.7f, -1, -0.5f},
+ {-0.7f, 1, -0.5f},
+ {0.7f, 1, -0.5f},
+ {0.7f, -1, -0.5f},
+ {-0.7f, -1, 0.5f},
+ {-0.7f, 1, 0.5f},
+ {0.7f, 1, 0.5f},
+ {0.7f, -1, 0.5f},
};
for (Common::Vec3f& point : cube) {