On Sat, 2007-08-18 at 13:58 +0000, Stuart Buchanan wrote: > Hi All, > > When using the mouse in view-direction mode, the mouse warps back to the > centre of the screen (0,0) when it reaches half-way towards any edge. This is > good as it stops the window losing focus on X windows. > > However, because it warped back to (0,0), the warp had the effect or reseting > the other coordinate. > > For example, if you were rotating a view above an aircraft, when the mouse > reached the X-limit, the mouse is warped back to the center, reseting the Y > value to 0 and causing the view to return to the Y=0 plane. > > The patch below fixes this behaviour on OSG by warping the mouse properly. > > Note that this changes the arguments for fgWarpMouse from the pixel > coordinate system to a normalized one where (0.0, 0.0) is the centre of the > screen. I have fixed all the references to fgWarpMouse, but some of these > are in #ifdefs that don't apply to my platform (Windows), so I would > appreciate if someone who compiles with X_CURSOR_TWEAKS could test the > behaviour on their system. > > Could someone please review it, and assuming it meets with approval, commit > it. > > Thanks, > > -Stuart
> -void fgWarpMouse(int x, int y) > +void fgWarpMouse(float x, float y) Stuart, This only works with --enable-osgviewer. It will fail with SDL... Ron ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

