Closed dcnieho closed 1 year ago
This should be fixed by 732a52df05bfb1570a22f2509a34893d3656800f . It fixed the issue on my side. I had to move PostInit call so that it is called a little before ImGui_ImplGlfw_InstallCallbacks
Should i still set fps_idling.enable_idling = False when i already set fps_idling.fps_idle = 0, or are they equivalent? Your haiku demo does both.
You can do either; and do not have to do both: the effect will be the same, except that enable_idling does not override the previous chosen fps)
Please tell if it fixes the issue for you
Thanks, that works nicely! And my editor no longer suggests hello_imgui.get_glfw_window()
, so thats also fixed with the removed stub :)
I am trying to add my own callbacks to hello_imgui's glfw window. There is an order issue here however. I've been modifying the heart haiku, this is the state i am in now. With this, any mouse click interaction with the gui is not possible, mouse clicks are not received. This is not strange, since the glfw backend's callback has been replaced by mine.
The thing is, user callbacks need to be set before the glfw backend is initialized (see
ImGui_ImplGlfw_InstallCallbacks
). This from code not using hello_imgui works fine:Could hello_imgui support this? Perhaps another callback is needed here, for in between glfw window being created and
glfw_init_for_open_gl
being called?And a small question: Should i still set
fps_idling.enable_idling = False
when i already setfps_idling.fps_idle = 0
, or are they equivalent? Your haiku demo does both.