BetterPushbackC icon indicating copy to clipboard operation
BetterPushbackC copied to clipboard

Betterpushback wont let me push back

Open BFloBTW opened this issue 4 years ago • 4 comments

Whenever i click on betterpushback then do prefile or even start pushback, there are no buttons that pop up on the side of my screen and then for where i want to pushback is going off the screen for miles and i can get it back. If someone would please help.

BFloBTW avatar Feb 25 '21 14:02 BFloBTW

Same issue as #345 & #331 (possibly #298) - BetterPushback doesn't like it if you are using a secondary monitor to display the sim.

Workaround: Change the sim to the main monitor in the graphics settings (in my case the main laptop screen), plan the pushback, then change the sim back to the secondary (larger) monitor.

g0wfv avatar Feb 28 '21 15:02 g0wfv

Same issue as #345 & #331 (possibly #298) - BetterPushback doesn't like it if you are using a secondary monitor to display the sim.

Workaround: Change the sim to the main monitor in the graphics settings (in my case the main laptop screen), plan the pushback, then change the sim back to the secondary (larger) monitor.

Thats probally what it is cus i am playing on another monitor that isnt my main one. TY very much.

BFloBTW avatar Feb 28 '21 17:02 BFloBTW

Just a followup to this for @skiselkov's benefit.

After a little play with this I discovered I needn't go as far as I said in the workaround I gave previously; I only need to temporarily turn the the main monitor to "Full Screen Simulator" whilst leaving the secondary monitor (Monitor 1 in my case) as "Full Screen Simulator" and you can see exactly what's happening with this; it seems to take the mouse coords from the root of the main monitor regardless of the monitor in use.

With the mouse on the secondary monitor, the planned path will appear to be off the edge of the screen. In my case the main monitor is to the left of the secondary monitor, so the mouse coords are a whole monitor's width to the right (and up a bit as my monitors aren't similar size or even level in my setup!)

image

Turn the primary monitor to "Full Screen Simulator" too and move the mouse to the primary monitor, I get this .....

image

The mouse coords are still being measured from a root on the main monitor, but the planned path is now displayed correctly on the secondary monitor! No path is ever displayed on the primary monitor.

g0wfv avatar Feb 28 '21 19:02 g0wfv

@skiselkov - The solution would be to use XPLMGetMouseLocationGlobal instead of the XPLMGetMouseLocation function which should return the coords of the mouse with reference to the monitor the mouse is actually over rather than with reference to the main monitor.

I've managed to find the relevant lines in bp.c and bp_cam.c, however I can't get the thing to build on my setup here (way too many missing dependencies!) and I've already spent far longer on this than I'd intended!

It maybe doesn't help I'm running Ubuntu for WSL (not a proper Ubuntu Linux box!)

g0wfv avatar Feb 28 '21 21:02 g0wfv