Corrected Y axis for using touch screen as joystick

This commit is contained in:
CTurt 2014-12-13 19:55:58 +00:00
parent 6813f9ac3f
commit f373be6ce9

View file

@ -123,7 +123,7 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nShow)
SetCursorPos(p.x + (currentTouch.x - lastTouch.x) * settings.mouseSpeed, p.y + (currentTouch.y - lastTouch.y) * settings.mouseSpeed);
}
else if(settings.touch == joystick) {
if(vJoy) updateJoystick((currentTouch.x) * 128, (240 - currentTouch.y) * 128);
if(vJoy) updateJoystick((currentTouch.x) * 128, (currentTouch.y) * 128);
}
}