Commit ad669fc7 authored by hybrid's avatar hybrid

Added fix by drewbacca which avoids spinning camera if the event receiver is...

Added fix by drewbacca which avoids spinning camera if the event receiver is disabled while mouse was moved.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1430 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9cbeca1c
......@@ -148,6 +148,9 @@ void CSceneNodeAnimatorCameraFPS::animateNode(ISceneNode* node, u32 timeMs)
// reset cursor position
CursorControl->setPosition(0.5f, 0.5f);
CenterCursor = CursorControl->getRelativePosition();
// needed to avoid problems when the ecent receiver is
// disabled
CursorPos = CenterCursor;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment