optional fake GetCursorPos for carmageddon
This commit is contained in:
parent
5d31c5db48
commit
b2bacb95c3
4 changed files with 49 additions and 25 deletions
11
src/mouse.c
11
src/mouse.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue