From 631a361cc80792a451e0b490b36674a4269d3107 Mon Sep 17 00:00:00 2001 From: booto Date: Sat, 19 Jul 2014 15:18:52 +0800 Subject: [PATCH] GCPadEmu: stop sticks wrapping at extreme values --- Source/Core/Core/HW/GCPadEmu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/GCPadEmu.cpp b/Source/Core/Core/HW/GCPadEmu.cpp index 0d9c0a4856..a065604cb1 100644 --- a/Source/Core/Core/HW/GCPadEmu.cpp +++ b/Source/Core/Core/HW/GCPadEmu.cpp @@ -103,12 +103,12 @@ void GCPad::GetInput(GCPadStatus* const pad) // sticks m_main_stick->GetState(&x, &y); - pad->stickX = 0x7F + (x * 0x80); - pad->stickY = 0x7F + (y * 0x80); + pad->stickX = 0x80 + (x * 0x7F); + pad->stickY = 0x80 + (y * 0x7F); m_c_stick->GetState(&x, &y); - pad->substickX = 0x7F + (x * 0x80); - pad->substickY = 0x7F + (y * 0x80); + pad->substickX = 0x80 + (x * 0x7F); + pad->substickY = 0x80 + (y * 0x7F); // triggers m_triggers->GetState(&pad->button, trigger_bitmasks, triggers);