imgui: Added handling middle mouse button.

This commit is contained in:
Branimir Karadžić
2015-08-25 22:59:20 -07:00
parent 06624bb7c2
commit 4018a4b690
13 changed files with 37 additions and 24 deletions

View File

@@ -242,8 +242,9 @@ int _main_(int /*_argc*/, char** /*_argv*/)
imguiBeginFrame(mouseState.m_mx
, mouseState.m_my
, (mouseState.m_buttons[entry::MouseButton::Left ] ? IMGUI_MBUT_LEFT : 0)
| (mouseState.m_buttons[entry::MouseButton::Right ] ? IMGUI_MBUT_RIGHT : 0)
, (mouseState.m_buttons[entry::MouseButton::Left ] ? IMGUI_MBUT_LEFT : 0)
| (mouseState.m_buttons[entry::MouseButton::Right ] ? IMGUI_MBUT_RIGHT : 0)
| (mouseState.m_buttons[entry::MouseButton::Middle] ? IMGUI_MBUT_MIDDLE : 0)
, mouseState.m_mz
, width
, height