1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add presets for TS and YR

This commit is contained in:
FunkyFr3sh 2018-11-15 10:47:18 +01:00
parent c04146ff67
commit e4a5c35f65
2 changed files with 23 additions and 4 deletions

View File

@ -250,11 +250,14 @@ void mouse_lock()
SetCursorPos(rc.left + ddraw->cursor.x, rc.top + ddraw->cursor.y - yAdjust);
}
SetCapture(ddraw->hWnd);
ClipCursor(&rc);
if (ddraw->hidemouse)
while(ShowCursor(FALSE) > 0);
{
SetCapture(ddraw->hWnd);
ClipCursor(&rc);
while (ShowCursor(FALSE) > 0);
}
else
ClipCursor(&rc);
ddraw->locked = TRUE;
}

View File

@ -293,6 +293,22 @@ static void CreateSettingsIni()
"[dune2000-spawn]\n"
"maxgameticks=60\n"
"\n"
"; Command & Conquer: Tiberian Sun\n"
"[game]\n"
"hidemouse=false\n"
"\n"
"; Command & Conquer: Tiberian Sun Online\n"
"[ts-spawn]\n"
"hidemouse=false\n"
"\n"
"; Command & Conquer: Red Alert 2: Yuri's Revenge\n"
"[gamemd]\n"
"hidemouse=false\n"
"\n"
"; Command & Conquer: Red Alert 2: Yuri's Revenge Online\n"
"[gamemd-spawn]\n"
"hidemouse=false\n"
"\n"
, fh);
fclose(fh);