WHat is the correct flag in springsettings.cfg for grabinput

WHat is the correct flag in springsettings.cfg for grabinput

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

WHat is the correct flag in springsettings.cfg for grabinput

Post by Forboding Angel »

I tried putting a line of
grabinput=1
in springsettings, but no such luck. And I struck out on the wiki.

What is the proper "flag"?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by Beherith »

I cant find anything in spring.exe/edit settings, what exactly is this supposed to do?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by zerver »

It seems there is no setting, only /grabinput in the console. It captures the mouse in the window.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by Forboding Angel »

Crap. So I'm stuck sending /grabinput 1 every game?

Perhaps grabinput could be added as a springsettings options so that windowed fullscreen could become an actual menu setting?
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by Peet »

Forboding Angel wrote:Perhaps grabinput could be added as a springsettings options so that windowed fullscreen could become an actual menu setting?
This would be a good thing but you could also make a oneliner widget that executes the command at the start of the game.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by Forboding Angel »

I understand that peet, but it makes a lot more sense for it to Be done via springsettings.cfg

Atm, windowed fullscreen as a settings option would fail hardcore on a setup with 2 monitors.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by abma »

hm, not sure if engine support is required, the widget that does it is a two-liner...
Attachments
grabinput.lua
(342 Bytes) Downloaded 23 times
Last edited by abma on 12 Aug 2012, 02:12, edited 1 time in total.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by Forboding Angel »

Thanks Abma. I still advocate it being settable in springsettings.cfg. It is very strange for it not to be in springsettings.cfg
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by zwzsg »

Make a widget that reads a custom Spring config tag before setting it!

Edit: Oh wait. That is exactly what Abma did.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: WHat is the correct flag in springsettings.cfg for grabi

Post by Forboding Angel »

The ENGINE should read it. Not the game. This is a neat little workaround, but it's just a hack all things considered. The engine is the one that should be looking by default.
Post Reply

Return to “Engine”