Commit c0df3c33 authored by cutealien's avatar cutealien

Maya camera no longer get's stuck in "rotating" state when a mouse-up event is...

Maya camera no longer get's stuck in "rotating" state when a mouse-up event is lost (thx @ JLouisB for reporting).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4762 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 116dc6fa
--------------------------
Changes in 1.9 (not yet released)
- Maya camera no longer get's stuck in "rotating" state when a mouse-up event is lost (thx @ JLouisB for reporting).
- Focus behavior of IGUIEnvironment now controllable (right-click focus, mouse-over focus). Disabled elements no longer get the focus unless users enforce it.
- Buttons can now now have 7 more image-states, 1 more sprite-state and the sprites are now scaleable.
- Spritebanks can now draw scaled sprites and are a little easier to use.
......
......@@ -74,6 +74,11 @@ bool CSceneNodeAnimatorCameraMaya::OnEvent(const SEvent& event)
MouseKeys[1] = false;
break;
case EMIE_MOUSE_MOVED:
// check states again because sometimes the gui has already catched events
MouseKeys[0] = event.MouseInput.isLeftPressed();
MouseKeys[2] = event.MouseInput.isRightPressed();
MouseKeys[1] = event.MouseInput.isMiddlePressed();
MousePos = CursorControl->getRelativePosition();
break;
case EMIE_MOUSE_WHEEL:
......
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