Corrected Y axis for using touch screen as joystick
This commit is contained in:
parent
6813f9ac3f
commit
f373be6ce9
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
SetCursorPos(p.x + (currentTouch.x - lastTouch.x) * settings.mouseSpeed, p.y + (currentTouch.y - lastTouch.y) * settings.mouseSpeed);
|
||||||
}
|
}
|
||||||
else if(settings.touch == joystick) {
|
else if(settings.touch == joystick) {
|
||||||
if(vJoy) updateJoystick((currentTouch.x) * 128, (240 - currentTouch.y) * 128);
|
if(vJoy) updateJoystick((currentTouch.x) * 128, (currentTouch.y) * 128);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue