mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-23 02:04:22 +00:00
Merge branch 'examples_refactor' into viewport
# Conflicts: # examples/directx10_example/main.cpp # examples/directx11_example/main.cpp # examples/directx12_example/main.cpp # examples/opengl3_example/main.cpp # examples/sdl_opengl2_example/main.cpp # examples/sdl_opengl3_example/main.cpp # examples/sdl_vulkan_example/main.cpp # examples/vulkan_example/main.cpp # imgui.h
This commit is contained in:
commit
fc80f2b41a
6 changed files with 252 additions and 294 deletions
|
|
@ -176,6 +176,7 @@ static void ImGui_ImplGlfw_UpdateMouse()
|
|||
io.MouseHoveredViewport = 0;
|
||||
|
||||
// Update buttons
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++)
|
||||
{
|
||||
// If a mouse press event came, always pass it as "mouse held this frame", so we don't miss click-release events that are shorter than 1 frame.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue