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

Input state is not reset when losing focus #6

Open
JordanSchlick opened this issue Aug 17, 2022 · 1 comment
Open

Input state is not reset when losing focus #6

JordanSchlick opened this issue Aug 17, 2022 · 1 comment

Comments

@JordanSchlick
Copy link

The input state is not reset when losing focus which causes problems because the state of things can change while it is not focused.

In my case, I give input to the game when clicking the mouse and return it to ImGui when the mouse is released. ImGui never receives the mouse release because the game has consumed it. This makes it so that an additional mouse click is needed to to release to mouse state in ImGui before any other actions can be taken.

I think the input state should be reset in FImGuiInputState whenever ImGui loses focus unless there is a better way.

@WiggleWizard
Copy link
Owner

I vaguely remember screwing around with input reseting stuff when moving over to the new ImGui 1.87 input system. I'll take another peek at it and see if I can't fix it.

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