Sorry, a quick fix.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4926 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
ayuanx 2010-01-23 00:06:17 +00:00
parent 267fd392d7
commit aa143054eb

View File

@ -403,13 +403,13 @@ void EmulateAnalogStick(unsigned char &stickX, unsigned char &stickY, bool butto
if ((mainX == 0) || (mainY == 0)) if ((mainX == 0) || (mainY == 0))
{ {
stickX = mainX; stickX += mainX;
stickY = mainY; stickY += mainY;
} }
else else
{ {
stickX = mainX * DIAGONAL_SCALE; stickX += mainX * DIAGONAL_SCALE;
stickY = mainY * DIAGONAL_SCALE; stickY += mainY * DIAGONAL_SCALE;
} }
} }