David Megginson writes:

> I've just checked in a patch to change the mouse behaviour in modes
> where the 'constrained' property is true (e.g. control mode and view
> mode).  Previously, the 'constrained' property actually caused the
> mouse to wrap around to the other side of the screen when it hit an
> edge, causing huge opposite-direction changes in the control and view
> positions.  I may be the only one here who ever tries to fly a plane
> using the mouse, but I've lost control once too often this way (and
> it's also unpleasant having the view messed up).
> 
> The patch constrains the mouse to stay between 25% and 75% on the X
> and Y axes in the special mouse modes (no effect on pointer mode);
> when it hits a limit, it simply jumps back to the centre.  Now, if you
> move the mouse continuously to the left in view mode, for example, the
> view will keep panning to the left, rather than suddenly jumping
> somewhere unexpected.  It still doesn't seem to be working perfectly,
> but it's better than before.
> 
> Let me know if anyone objects.  When I first did this a few years ago,
> Norman Vine was adamant that it was the wrong behaviour, for reasons
> that I no longer remember.
> 
> 

Hi David,

Good to see you back :-)  

I also fly with the mouse on a regular basis.  I'm afraid to report that you've 
broken it, even with Melchior's subsequent patch applied.  The old version 
worked fine for me using SDL - when the mouse wrapped the view just kept 
panning smoothly.  Trying to pan the view fairly rapidly from side to side with 
your patch, FG exits with the simple message 'killed'.  (fgfs 
--enable-fullscreen --geometry=1280x1024 --airport=KUKI --aircraft=pa28-161).  
Reverting input.cxx fixes it.

I do recall that on Cygwin (glut) builds I used to see unpredicable view 
behaviour when the mouse wrapped, that I've never seen on Linux (SDL) builds 
where the mouse has always wrapped with no problem or view jump.

Control - who knows? - I never get anywhere near the edge of the screen.  It's 
only view panning where I have a problem.

Cheers - Dave



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to