w.backend.SetKeyCallback(func(key, scanCode, action, modifier int) {
fmt.Println(key, scanCode, action, modifier)
k, m, a := keyFromGLFWKey(imgui.GLFWKey(key)), Modifier(modifier), Action(action)
handler.Handle(k, m, a)
if w.additionalInputCallback != nil {
w.additionalInputCallback(k, m, a)
}
})
conclusion:
we overwrite imgui's internal stuff. This issue should escalate to cimgui-go
we need to keep in mind that the solution from my PR is not ideal. I think that we we should consider wheteher IMPL functions should not be also wrapped and generated as go functions.
Reason
in imgui_impl_glfw.cpp:
in glfw_backend.cpp:
which is wrapped in glfw_backend.go:
and in giu we do (in MasterWindow.go):
conclusion: we overwrite imgui's internal stuff. This issue should escalate to cimgui-go
Originally posted by @gucio321 in https://github.com/AllenDang/giu/issues/754#issuecomment-1954950993