Change camera view only on right click.

This commit is contained in:
Dario Manesku 2014-02-14 06:53:25 +01:00
parent 9bb2440d86
commit 15a9282cc9

View file

@ -197,7 +197,7 @@ namespace entry
const MouseEvent* mouse = static_cast<const MouseEvent*>(ev);
//TODO: move this from here.
cameraSetMouseState(mouse->m_mx, mouse->m_my, mouse->m_down, mouse->m_move);
cameraSetMouseState(mouse->m_mx, mouse->m_my, mouse->m_down && MouseButton::Right == mouse->m_button, mouse->m_move);
if (mouse->m_move)
{