Skip to content

Commit

Permalink
Merge pull request #4 from JamesWrigley/imgui-update
Browse files Browse the repository at this point in the history
Fix an enum to use the new name from ImGui
  • Loading branch information
JamesWrigley authored Sep 3, 2023
2 parents 3f93df3 + d0a7a68 commit 7d3aa66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/platform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7d3aa66

Please # to comment.