]> git.mxchange.org Git - flightgear.git/commit
- Track a saved mouse pointer location from the previous frame so we can detect
authorcurt <curt>
Mon, 14 Jun 2004 18:46:58 +0000 (18:46 +0000)
committercurt <curt>
Mon, 14 Jun 2004 18:46:58 +0000 (18:46 +0000)
commit886d0036885ec162c9bac3ef0bc97db5d316f9e8
tree7a57444bf433c2f89b3209702af4f15a0b25c221
parent0fa47dbbdc0b636a25661372df5a77ec6539befb
- Track a saved mouse pointer location from the previous frame so we can detect
  motion.

- Track a timeout value so we can optionally hide the mouse pointer after
  some user specified timeout period.

- in doMouseMotion() always update m.x and m.y even if we return early because
  pui wanted the event.  Without this, we can't reliably detect motion vs.
  inactivity.

- in _update_mouse() add a dt parameter so we can decriment the timeout value
  in "real" time.

- in _update_mouse() optionally hide the mouse pointer if m.timeout goes to
  zero.  Restore the pointer (and the timeout counter) if the mouse is moved.
src/Input/input.cxx
src/Input/input.hxx