-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

I used your suggestion, but took a different approach: implement fgWarpMouse 
for real
in the fg_os_osgviewer backend. This doesn't require changes elsewhere in the 
code.

Thanks,
Tim

- --
Red Hat France SARL, 171 Avenue Georges Clemenceau
92024 Nanterre Cedex, France.
Siret n° 421 199 464 00056
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGx26GeDhWHdXrDRURAk8tAJ4xD5ADQ12P9hXyRkK7u6A5nCzh6wCgn5KD
3eIJ+VHakFVOycZNsvsRBYY=
=n/Ts
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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

Reply via email to