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.


All the best,


David

--
http://www.megginson.com/


-------------------------------------------------------
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&kid3432&bid#0486&dat1642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to