FreeOrion

Forums for the FreeOrion project
It is currently Fri Jan 19, 2018 3:24 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Mon Jan 01, 2018 6:49 pm 
Offline
Space Krill

Joined: Mon Jan 01, 2018 6:30 pm
Posts: 6
To me, that is counterintuitive, how do I reverse that?

_________________
Wisdom is even more powerful than knowledge © Ari Gold


Top
 Profile  
 
PostPosted: Mon Jan 01, 2018 8:49 pm 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4401
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.)

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Mon Jan 01, 2018 11:56 pm 
Offline
Space Krill

Joined: Mon Jan 01, 2018 6:30 pm
Posts: 6
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. ;)

_________________
Wisdom is even more powerful than knowledge © Ari Gold


Top
 Profile  
 
PostPosted: Tue Jan 02, 2018 12:08 am 
Offline
AI Lead, Programmer
User avatar

Joined: Sat Sep 22, 2012 6:25 pm
Posts: 4401
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.

_________________
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0


Top
 Profile  
 
PostPosted: Tue Jan 02, 2018 5:35 am 
Offline
Vacuum Dragon

Joined: Wed Aug 26, 2015 6:15 pm
Posts: 526
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.


Top
 Profile  
 
PostPosted: Tue Jan 02, 2018 6:18 am 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3310
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.

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
PostPosted: Tue Jan 02, 2018 8:22 am 
Offline
Space Dragon
User avatar

Joined: Mon Apr 10, 2017 4:25 pm
Posts: 319
Yeah, I also find the current way the one I'm more used to, many programs do the same.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: AhrefsBot and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group