Page 1 of 1
Mouse Zeroing Behaviour on Mac
Posted: Sat Mar 23, 2019 7:13 am
by Paladin Tux
Hello!!!
So I recently “upgraded” to a mac, and I immediatly noticed that the mouse controls send me spinning wildly around! From my experience on the windows version, right clicking the mouse instantly kills all yaw and pitch (centering the mouse). On the Mac however, I don’t get any of this. A “right” click (I’ve programmed the right side of the mouse to the secondary button), instead locks any mouse movement, but doesn’t actually center the mouse, hence leaving me continually rotating like a washing machine in my Adder. Is this behaviour normal for the Mac version, or am I doing something wrong? Or this a bug? Is this a feature? Or something else entirely....?
Currently running 1.88 on Mojave 10.14
Thanks in advance
Re: Mouse Zeroing Behaviour on Mac
Posted: Sat Mar 23, 2019 9:30 am
by another_commander
It seems like there is somewhat different handling for the right mouse button on the Mac. Can't test anything without a volunteer though. Would you be willing to try the tomorrow's nightly build if I attempt a fix (or at least try to make it behave like the Windows/Linux port)?
Re: Mouse Zeroing Behaviour on Mac
Posted: Sat Mar 23, 2019 10:38 pm
by Paladin Tux
Yeah sure! I’d be willing to do that, though it might take me a while to get back to you.
Re: Mouse Zeroing Behaviour on Mac
Posted: Sat Mar 23, 2019 10:51 pm
by another_commander
OK, change committed. Please be aware that due to technical reasons it might take a few days for the Mac nightly to be generated. You should keep an eye on the
releases of the nightlies repository on github.
Re: Mouse Zeroing Behaviour on Mac
Posted: Sun Mar 24, 2019 9:35 pm
by Getafix
Oolite Nightly Build (2019-03-24) is now updated with the relevant Mac release.
Re: Mouse Zeroing Behaviour on Mac
Posted: Wed Apr 03, 2019 8:20 am
by Paladin Tux
Just downloaded it, and it works pretty well! I click the secondary button, and once it releases the mouse re centres itself. It works over while in flight, and on all the interface screens (centres the cursor.)
I don’t want to sound pedantic, however I noticed that the centring occurs once I release the mouse button, not immediatly once I press down on the button. This is unlike the Window’s and Linux versions, were I get an affect immediatly on pressing the button (without having to release it). Either way, thanks for the great work another_commander!
Re: Mouse Zeroing Behaviour on Mac
Posted: Wed Apr 03, 2019 8:47 am
by another_commander
Paladin Tux wrote: ↑Wed Apr 03, 2019 8:20 am
Just downloaded it, and it works pretty well! I click the secondary button, and once it releases the mouse re centres itself. It works over while in flight, and on all the interface screens (centres the cursor.)
I don’t want to sound pedantic, however I noticed that the centring occurs once I release the mouse button, not immediatly once I press down on the button. This is unlike the Window’s and Linux versions, were I get an affect immediatly on pressing the button (without having to release it). Either way, thanks for the great work another_commander!
This is because I used the button-up handler to do the centering. I can retry with tomorrow's nightly, using the button-down handlers and that should in theory make the behavior exactly the same. It will need one more test from your side though.
Re: Mouse Zeroing Behaviour on Mac
Posted: Wed Apr 03, 2019 10:08 am
by Getafix
another_commander wrote: ↑Wed Apr 03, 2019 8:47 am
Paladin Tux wrote: ↑Wed Apr 03, 2019 8:20 am
...I noticed that the centring occurs once I release the mouse button, not immediatly once I press down on the button...Either way, thanks for the great work another_commander!
...It will need one more test from your side though.
@Paladin Tux: Just when you thought that you would get away with a single testing activity!
Re: Mouse Zeroing Behaviour on Mac
Posted: Thu Apr 04, 2019 6:42 am
by Paladin Tux
Welp. All in the name of progress! (I guess...)
Re: Mouse Zeroing Behaviour on Mac
Posted: Thu Apr 04, 2019 12:19 pm
by Getafix
Oolite Nightly Build (2019-04-04) is now updated with the relevant Mac release, featuring mouse down centering.
Re: Mouse Zeroing Behaviour on Mac
Posted: Sun Apr 07, 2019 7:22 am
by Paladin Tux