You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really an issue, but I'd like to share a code snippet for people using imgui with GLEQ.
GLEQ is a simple (SDL like) event queue for GLFW3. It replaces all the callbacks of the glfw window, so keyboard-, textinput and scrollinput in ImGui will be lost.
To get my inputs back in dear ImGui, I made a "ProcessEvent" function, derived from: ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event)
Run this function in the while gleqNextEvent() loop:
Thanks for posting it. At a quick glance it seems like mouse buttons are never marked as released?
About
It replaces all the callbacks of the glfw window, so keyboard-, textinput and scrollinput in ImGui will be lost
I think it would be more appropriate to just chain the callback.
If you installed GLEQ callbacks gleqTrackWindow() and then install the imgui glfw backend callbacks, the later will automatically call the GLEQ callbacks while handling its own stuff. You could also do it the other way.
Not really an issue, but I'd like to share a code snippet for people using imgui with GLEQ.
GLEQ is a simple (SDL like) event queue for GLFW3. It replaces all the callbacks of the glfw window, so keyboard-, textinput and scrollinput in ImGui will be lost.
To get my inputs back in dear ImGui, I made a "ProcessEvent" function, derived from: ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event)
Run this function in the while gleqNextEvent() loop:
The text was updated successfully, but these errors were encountered: