why is the default mouse camera control inverted?

why is the default mouse camera control inverted?

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
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

why is the default mouse camera control inverted?

Post by smoth »

Seriously why?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: why is the default mouse camera control inverted?

Post by abma »

what is inverted?

mouse wheel up = move camera up
mouse wheel down = move camera down
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: why is the default mouse camera control inverted?

Post by smoth »

fps cam,
middle click,

move forward mouse, looks down.
move back mouse, looks up.

inverted.

springsettings.exe.. inverted(checked in)

inverted is default.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: why is the default mouse camera control inverted?

Post by hoijui »

i think that is springsettings default, not springs default.
Tobi wrote a new config system for the engine. one effect of that is, that only config values that differ from the default are written to the config file. i guess springsettings was not yet adjusted to that.

what i think does happen:
so when you use springsettings, and you have InvertMouse on its default value (false in the engine), the engine will not have written it to the config file, and springsettings thinks it is missing, and uses its own default, which is true:
https://github.com/springlobby/springlo ... nts.h#L389

if i am right, it means springsettings needs some adjustments, most likely.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: why is the default mouse camera control inverted?

Post by smoth »

ah, ok. do let me know when you update that. For now I am rolling back to to the old engine, several tags are turned off and much of my work is graphical so I need to have all my settings.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: why is the default mouse camera control inverted?

Post by hoijui »

koshi did invert that particular default in springsettings:
https://github.com/springlobby/springlo ... ce6b8f3ecb

so this particular issue should not be a problem anymore with the next SL release.

spring now supports a new command line switch --list-config-vars,
which outputs key, default-value and type of all possible config entries.
This may be used by tools like springsettings in the future.
Chamrin
Posts: 33
Joined: 05 Mar 2010, 12:31

Re: why is the default mouse camera control inverted?

Post by Chamrin »

Also the mouse wheel zoom was inverted when I first played spring. I don't know if that default was fixed yet either.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: why is the default mouse camera control inverted?

Post by Forboding Angel »

Smoth, what you and I consider "Normal" is actually inverted compared to most rts games. So, that said, imo it would be best to stick to common convention.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: why is the default mouse camera control inverted?

Post by hoijui »

koshi changed the springsettings default for that value to be the same as the spring internal one, so it is fixed (in smoths understanding).
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: why is the default mouse camera control inverted?

Post by AF »

Forb has a point. It's most frustrating having supreme commander and other games and then going to spring and have to deal with it.

Sure I can flip a switch in settings, but I shouldn't have to if I want standard RTS behaviour.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: why is the default mouse camera control inverted?

Post by smoth »

other rts games do not use a fps cam. If I install groundcontrol which does have one, I am pretty damn certain it does not use inverted or flightsim style controls forb/af.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: why is the default mouse camera control inverted?

Post by AF »

Then in that case the setting should either not affect FPS or be separated out with a brand new default value.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: why is the default mouse camera control inverted?

Post by Forboding Angel »

AF wrote:Then in that case the setting should either not affect FPS or be separated out with a brand new default value.
^^ this.
Post Reply

Return to “Engine”