How to avoid to propagate mouse click in an ImGui Window? #2372
-
Hi all, how can I prevent mouse clicks from being intercepted by an "ObjectIDPicker" when I'm using an "imgui" window? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Are you using osgearth_pick or your own application? If you are using your own application make sure that the you are adding the GUI as the first GUIEventHandler so it can intercept all mouse events like this: I tried with osgearth_imgui and osgearth_pick and click and double click events don't seem to be propagated into the viewer window in those examples. |
Beta Was this translation helpful? Give feedback.
-
I solved it, using the ImGui::GetIO().WantCaptureMouse in the ObjectIDPicker function call back |
Beta Was this translation helpful? Give feedback.
I solved it, using the ImGui::GetIO().WantCaptureMouse in the ObjectIDPicker function call back