optional fake GetCursorPos for carmageddon

This commit is contained in:
FunkyFr3sh 2018-03-19 00:32:13 +01:00
parent 5d31c5db48
commit b2bacb95c3
4 changed files with 49 additions and 25 deletions

View file

@ -56,6 +56,17 @@ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint)
if (lpPoint)
{
if (!ddraw->fakecursorpos)
{
if (ddraw->locked || ddraw->devmode)
{
lpPoint->x = pt.x;
lpPoint->y = pt.y;
}
else
return FALSE;
}
lpPoint->x = (int)ddraw->cursor.x;
lpPoint->y = (int)ddraw->cursor.y;
}