Is it possible to lock/unlock the mouse to Oolite?

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5389
Joined: Wed Feb 28, 2007 7:54 am

Re: Is it possible to lock/unlock the mouse to Oolite?

Post by another_commander » Thu Nov 06, 2014 8:39 am

Just to bring this somewhat closer to the original topic, as of commit 9190b56, we have support for mouse grabbing when mouse control is active on Windows. The default behaviour is still set to no grabbing (it is generally considered bad form for software to demand exclusivity of the shared OS pointer), but you can easily change this by inserting the below line in your .GNUstepDefaults file:

Code: Select all

"grab-mouse-on-mouse-control" = YES;
This way you can play fullscreen on multiple monitors without fear of accidentally clicking something outside the game's window while five pirates and three thargoids start opening fire on you.

Edit to add: While the mouse is grabbed you cannot click on anything other than the Oolite window itself, but you can still use Alt-Tab normally, in which case mouse is liberated for normal use again. Turning off mouse control mode will also liberate the mouse and leave it available for normal use.

Post Reply