diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-24 23:37:07 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-06-24 23:37:07 +0100 |
| commit | 65c9432714c166cd79bdc24c07b18d8b15670063 (patch) | |
| tree | f691a4fcff6d4381d2e5a923d615a18735d3cde8 | |
| parent | Integrate ImGUI main calls (diff) | |
| download | ilt-65c9432714c166cd79bdc24c07b18d8b15670063.tar.bz2 ilt-65c9432714c166cd79bdc24c07b18d8b15670063.tar.xz ilt-65c9432714c166cd79bdc24c07b18d8b15670063.zip | |
Don't process input events which ImGui handled
| -rw-r--r-- | ui/mainApplication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/mainApplication.cpp b/ui/mainApplication.cpp index d843ef1..6cb1037 100644 --- a/ui/mainApplication.cpp +++ b/ui/mainApplication.cpp @@ -36,6 +36,8 @@ MainApplication::processInputs() return; } ImGui_ImplSDL2_ProcessEvent(&e); - windows.applyOne(&Window::handleInput, e); + if (!ImGui::GetIO().WantCaptureMouse) { + windows.applyOne(&Window::handleInput, e); + } } } |
