Better moving of mouse with circle pad

This commit is contained in:
CTurt 2014-12-07 17:22:15 +00:00
parent 23bc5d5637
commit ebfedb97f9

View file

@ -123,7 +123,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nShow)
if(settings.circlePad == mouse) {
POINT p;
GetCursorPos(&p);
SetCursorPos(p.x + circlePad.x / 64, p.y + circlePad.y / 64);
SetCursorPos(p.x + circlePad.x / 32, p.y - circlePad.y / 32);
}
else if(settings.circlePad == joystick) {
if(vJoy) updateJoystick((circlePad.x + 128) * 128, (128 - circlePad.y) * 128);