Fullscreen: lock mouse inside game window

Have trouble running Grimrock 1 or you're wondering if your graphics card is supported? Look for help here.
Post Reply
Kirinyale
Posts: 28
Joined: Sun Apr 22, 2012 1:04 pm
Location: Kiev, Ukraine

Fullscreen: lock mouse inside game window

Post by Kirinyale »

I am playing on a dual-monitor system in fullscreen, and the game lets the mouse cursor go outside the window to the second monitor. If I accidentally click there, the game will minimize.

Please add at least an option to lock mouse inside the game window when playing in fullscreen. Most modern games (and also many not-so-modern ones) do this by default for quite a long time already, but Grimrock doesn't. :( This means that I have to switch my system to single-monitor mode while I am playing (and then restore correct placements of all the desktop icons - thankfully, there's a number of nice utilities out there to automate it, but it's a bit of an inconvenience nevertheless).

On the programming side, it's really as simple as calling WinAPI function ClipCursor at correct times.
Post Reply