Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event processed ? #107

Closed
scemino opened this issue Sep 27, 2019 · 2 comments
Closed

Event processed ? #107

scemino opened this issue Sep 27, 2019 · 2 comments

Comments

@scemino
Copy link

scemino commented Sep 27, 2019

Is there a way to know if an event has been processed by ImGui or not ?
In my point and click game engine, I want to know if the mouse button has been pressed over a ImGui window or in the game.
Today when I click on a window, the current actor tries to walk to this position, but I dont want that.

@scemino
Copy link
Author

scemino commented Sep 27, 2019

Sorry duplicated question by #24

@scemino scemino closed this as completed Sep 27, 2019
@eliasdaler
Copy link
Contributor

No problem. :)
Will post here as well.

More info:

From ImGui:

You can read the io.WantCaptureMouse, io.WantCaptureKeyboard flags to tell if dear imgui wants to use your inputs.
- When io.WantCaptureMouse is true, do not dispatch mouse input data to your main application.
- When io.WantCaptureKeyboard is true, do not dispatch keyboard input data to your main application.
Generally you may always pass all inputs to dear imgui, and hide them from your application based on those two flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants