]> git.mxchange.org Git - flightgear.git/commit
The "constrained" property for a mouse mode now actually constrains
authordavid <david>
Thu, 16 Feb 2006 01:30:28 +0000 (01:30 +0000)
committerdavid <david>
Thu, 16 Feb 2006 01:30:28 +0000 (01:30 +0000)
commit85707f1e49a796282d0ee1b1a79a3c89678069ad
tree76b14ff747ce186f631f519f611f7fd6cbcb00f6
parent2aedb080d74e6461a5708dc0258dbad63d0b7229
The "constrained" property for a mouse mode now actually constrains
the mouse rather than wrapping it.  Wrapping around to the other side
of the screen has very bad consequences when using the mouse for
flying or viewing -- it can result in sudden jumps in the controls or
the viewpoint when the mouse jumps to another side of the screen.

Right now, the mouse is constrained to stay between 25% and 75% of the
screen on both the X and Y axis -- whenever it hits an edge, it jumps
back to the centre of the screen again (which causes no control or
view jump).
src/Input/input.cxx