hoffstadt / hoffstadt/DearPyGui

support for WantCaptureMouse

Open
#2,281 1 comment 0 reactions 0 assignees View on GitHub
state: pending type: improvement
Dominant language
C++
Stars
15.6k
Forks
783
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Loving DearPyGui, but it appears to have no support for "WantCaptureMouse". This variable is described in the [ocornut/imgui repo](https://github.com/ocornut/imgui/blob/master/imgui.h):
"_Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.)._"

**Describe the solution you'd like**
A method to access this variable would be helpful. A callback that occurs when this value changes would also be helpful, though not as important.

**Additional context**
Feature does not appear in the `dpg.demo.show_demo()`, but appears in the `dpg.show_imgui_demo()`:
![Screenshot from 2024-02-11 16-04-12_edit](https://github.com/hoffstadt/DearPyGui/assets/31712481/642ef329-804a-4cb4-8658-842584e3d019)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.