diff --git a/src/interface.jl b/src/interface.jl index 0eb28f5..daeb324 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -33,7 +33,7 @@ function init(ctx::Context) c_set!(io.KeyMap, ImGuiKey_Space, GLFW_KEY_SPACE) c_set!(io.KeyMap, ImGuiKey_Enter, GLFW_KEY_ENTER) c_set!(io.KeyMap, ImGuiKey_Escape, GLFW_KEY_ESCAPE) - c_set!(io.KeyMap, ImGuiKey_KeyPadEnter, GLFW_KEY_KP_ENTER) + c_set!(io.KeyMap, ImGuiKey_KeypadEnter, GLFW_KEY_KP_ENTER) c_set!(io.KeyMap, ImGuiKey_A, GLFW_KEY_A) c_set!(io.KeyMap, ImGuiKey_C, GLFW_KEY_C) c_set!(io.KeyMap, ImGuiKey_V, GLFW_KEY_V) diff --git a/src/platform.jl b/src/platform.jl index 3f6bec8..b162963 100644 --- a/src/platform.jl +++ b/src/platform.jl @@ -76,7 +76,7 @@ function ImGui_ImplGlfw_DestroyWindow(viewport::Ptr{ImGuiViewport}) win = Ptr{GLFWwindow}(unsafe_load(data.Window)) for i = 0:length(ctx.KeyOwnerWindows)-1 if ctx.KeyOwnerWindows[i+1] == win - ImGui_ImplGlfw_KeyCallback(win, i, 0, GLFW_RELEASE, 0) + ImGui_ImplGlfw_KeyCallback(win, Cint(i), Cint(0), Cint(GLFW_RELEASE), Cint(0)) end end glfwDestroyWindow(win)