From aa143054eb4e7c50fe90915dc946837ff71528ae Mon Sep 17 00:00:00 2001 From: ayuanx Date: Sat, 23 Jan 2010 00:06:17 +0000 Subject: [PATCH] Sorry, a quick fix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4926 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_GCpad/GCPad.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Plugins/Plugin_GCpad/GCPad.cpp b/Source/Plugins/Plugin_GCpad/GCPad.cpp index 39bebed156..ba52f6a51a 100644 --- a/Source/Plugins/Plugin_GCpad/GCPad.cpp +++ b/Source/Plugins/Plugin_GCpad/GCPad.cpp @@ -403,13 +403,13 @@ void EmulateAnalogStick(unsigned char &stickX, unsigned char &stickY, bool butto if ((mainX == 0) || (mainY == 0)) { - stickX = mainX; - stickY = mainY; + stickX += mainX; + stickY += mainY; } else { - stickX = mainX * DIAGONAL_SCALE; - stickY = mainY * DIAGONAL_SCALE; + stickX += mainX * DIAGONAL_SCALE; + stickY += mainY * DIAGONAL_SCALE; } }