-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Description
Version/Branch of Dear ImGui:
Version: v1.71
Branches: master and docking
Back-ends: imgui_impl_opengl2.cpp + imgui_impl_opengl2.cpp
Compiler: xcode v9.2 (latest available for a 2016 macbook pro)
Operating System: macOS v10.12.6
Build: Release and Debug
My Issue/Question:
Hey Omar, we chatted on twitter earlier today. Anyway, example_apple_opengl2 isn't handling any mouse clicks. Everything works fine in windows. The main window can be resized, but no clicks are ever handled by the GUI.
Spent several hours debugging and can't find anything conclusive.
While debugging I set breakpoints in UpdateMouseInputs(), clicked the GUI and verified:
- g.IO.MouseDown[0] = true
- g.IO.MouseClicked[0] = true as I'd expect.
Debugging UpdateHoveredWindowAndCaptureFlags(), I verified:
- ImGuiConfigFlags_NoMouse, not set to disabled
- g.iO.MouseClicked[0] = true, line 3671, imgui.cpp
- g.IO.MouseDownOwned[0] = false, line 3672, imgui.cpp
- mouse_avail_to_imgui = false, line 3678 imgui.cpp
I'm not sure about the deep logic of mouse hovering. Do you have a mac to debug with and provide guidance?
Since this is concerning the example that I know you're familiar with I didn't include any of the source.
Thanks for all that you do!
Josh