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
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}