FreeOrion
http://www.freeorion.org/forum/

Scroll down (pulling closer to me) zooms out
http://www.freeorion.org/forum/viewtopic.php?f=25&t=10837
Page 1 of 1

Author:  BTA [ Mon Jan 01, 2018 6:49 pm ]
Post subject:  Scroll down (pulling closer to me) zooms out

To me, that is counterintuitive, how do I reverse that?

Author:  Dilvish [ Mon Jan 01, 2018 8:49 pm ]
Post subject:  Re: Scroll down (pulling closer to me) zooms out

BTA wrote:
To me, that is counterintuitive, how do I reverse that?

I'm afraid it's rather hardcoded, I suggest you simply adjust your thinking, considering mouse-up to be moving forward, and mouse-down to be pulling back.

If you are a coder, or at least willing to deal with compiling FreeOrion yourself, I think you could invert the mousewheel zoom direction by changing this line to read
Code:
        Zoom(-move, pt);


(And if you are a coder willing to put time into familiarizing yourself with the FreeOrion code, you could make the above be subject to a configuration option and submit a PR for it on our GitHub repo.)

Author:  BTA [ Mon Jan 01, 2018 11:56 pm ]
Post subject:  Re: Scroll down (pulling closer to me) zooms out

I don't have a mousewheel, I have a touchpad, specifically, a Dell D630, model # PP18L... AH! Maybe this instruction is for Windows? I am using Ubuntu 17.10. What do I change and where is it?

I compiled Freeorion. Imagine, it was a bit more complicated than installing. ;)

Author:  Dilvish [ Tue Jan 02, 2018 12:08 am ]
Post subject:  Re: Scroll down (pulling closer to me) zooms out

BTA wrote:
What do I change and where is it?
Above I included a link to the particular file and line in the latest test version. The version you compiled might be a bit older, so that the line numbers don't match exactly, but with a small bit of searching you should be able to find it. If you don't have an IDE installed for coding with then you could just make the changes with Kate or Kwrite (or whatever editor your system uses if you open the file). The change was just adding that minus sign. Then recompile.

Author:  defaultuser [ Tue Jan 02, 2018 5:35 am ]
Post subject:  Re: Scroll down (pulling closer to me) zooms out

It works the same as Ctrl + Wheel works for zooming in and out of web browsers. "Up" gets bigger, "down" gets smaller like you had a zoom slider.

It seems like the right way to me.

Author:  MatGB [ Tue Jan 02, 2018 6:18 am ]
Post subject:  Re: Scroll down (pulling closer to me) zooms out

It's also the default in Civ 5 and several other games I sometimes play.

An option to allow it to be changed would be a good feature request, but the default should be what other stuff does.

Author:  Oberlus [ Tue Jan 02, 2018 8:22 am ]
Post subject:  Re: Scroll down (pulling closer to me) zooms out

Yeah, I also find the current way the one I'm more used to, many programs do the same.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/