Skip to content

Commit

Permalink
fix key 161 on azerty keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
raph6 committed Mar 25, 2024
1 parent 9616518 commit 91072b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Keycode.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ const (
KeyRightAlt = Key(imgui.KeyRightAlt)
KeyRightSuper = Key(imgui.KeyRightSuper)
KeyMenu = Key(imgui.KeyMenu)
KeyWorld1 = Key(imgui.GLFWKeyWorld1)
KeyWorld2 = Key(imgui.GLFWKeyWorld2)
)

// refer glfw3.h.
Expand Down Expand Up @@ -230,6 +232,8 @@ func keyFromGLFWKey(k imgui.GLFWKey) Key {
imgui.GLFWKeyRightAlt: KeyRightAlt,
imgui.GLFWKeyRightSuper: KeyRightSuper,
imgui.GLFWKeyMenu: KeyMenu,
imgui.GLFWKeyWorld1: KeyWorld1,
imgui.GLFWKeyWorld2: KeyWorld2,
}

if v, ok := data[k]; ok {
Expand Down

0 comments on commit 91072b1

Please sign in to comment.