mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 15:35:46 +00:00
settings: Fix controller preview not displaying the correct controller
This commit is contained in:
parent
5d0f3540c4
commit
d14e74132c
3 changed files with 7 additions and 4 deletions
|
@ -2394,7 +2394,7 @@ void PlayerControlPreview::DrawGCJoystick(QPainter& p, const QPointF center,
|
|||
|
||||
void PlayerControlPreview::DrawRawJoystick(QPainter& p, QPointF center_left, QPointF center_right) {
|
||||
using namespace Settings::NativeAnalog;
|
||||
if (controller_type != Core::HID::NpadStyleIndex::JoyconLeft) {
|
||||
if (center_right != QPointF(0, 0)) {
|
||||
DrawJoystickProperties(p, center_right, stick_values[RStick].x.properties);
|
||||
p.setPen(colors.indicator);
|
||||
p.setBrush(colors.indicator);
|
||||
|
@ -2404,7 +2404,7 @@ void PlayerControlPreview::DrawRawJoystick(QPainter& p, QPointF center_left, QPo
|
|||
DrawJoystickDot(p, center_right, stick_values[RStick], false);
|
||||
}
|
||||
|
||||
if (controller_type != Core::HID::NpadStyleIndex::JoyconRight) {
|
||||
if (center_left != QPointF(0, 0)) {
|
||||
DrawJoystickProperties(p, center_left, stick_values[LStick].x.properties);
|
||||
p.setPen(colors.indicator);
|
||||
p.setBrush(colors.indicator);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue