]> git.mxchange.org Git - flightgear.git/commit
We need to flush all pending mouse move events past a mouse warp to avoid
authorfrohlich <frohlich>
Fri, 10 Mar 2006 07:13:59 +0000 (07:13 +0000)
committerfrohlich <frohlich>
Fri, 10 Mar 2006 07:13:59 +0000 (07:13 +0000)
commitdc958d6e8ef3c0965ae203b0aaadff3cd2f2e4a3
tree927bc35c06876a8e3320ae79590192e57cd1eba9
parentc486dc0589d6a5433964d77d634d7dd6f8edfca2
We need to flush all pending mouse move events past a mouse warp to avoid
a race condition ending in warping twice and having huge increments for the
second warp.
I am not aware of such a flush function in glut. So we emulate that by
ignoring mouse move events between a warp mouse and the next frame.
That should make glut behavour aequivalent to sdl behavour.
src/Main/fg_os.cxx