mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Don't update camera when mouse is over imgui.
This commit is contained in:
@@ -511,11 +511,8 @@ namespace
|
||||
|
||||
ImGui::End();
|
||||
|
||||
if (!ImGui::MouseOverArea() )
|
||||
{
|
||||
// Update camera.
|
||||
cameraUpdate(deltaTime*0.01f, m_mouseState);
|
||||
}
|
||||
// Update camera.
|
||||
cameraUpdate(deltaTime*0.01f, m_mouseState, ImGui::MouseOverArea() );
|
||||
|
||||
bgfx::touch(0);
|
||||
bgfx::touch(1);
|
||||
|
||||
Reference in New Issue
Block a user