mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Change camera view only on right click.
This commit is contained in:
parent
9bb2440d86
commit
15a9282cc9
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ namespace entry
|
||||||
const MouseEvent* mouse = static_cast<const MouseEvent*>(ev);
|
const MouseEvent* mouse = static_cast<const MouseEvent*>(ev);
|
||||||
|
|
||||||
//TODO: move this from here.
|
//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)
|
if (mouse->m_move)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue