Skip to content

Inputs getting stuck in down position, and weird mouse behaviour #51

Open
@Cursed-Gato

Description

@Cursed-Gato

Ok so, I have this weird issue where keys would get stuck in the sense if I clicked the mouse button sometimes it would just stay down.

I originally though that was an issue with ConfigInputTrickleEventQueue.

For Context I use the ImGui_ImplWin32_WndProcHandler that comes with imgui. After some googling essentially that handler doesn't really work with multiple context when it comes down to sharing inputs.

The fix for me was to wrap my entire Frame loop in a mutex that being ImGui::NewFrame(), and then ImGui::Render() aswell. Then aquire that lock when calling the ImGui_ImplWin32_WndProcHandler. And this fixed the whole issue's.

I spent some time trying to figure out why it seemed like some of the InputEvents had disappeared by the time it was being copied into ImNodeFlow's context, but I couldn't figure it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions