Skip to content

Commit

Permalink
Merge pull request #784 from raph6/fix-azerty-keyboard
Browse files Browse the repository at this point in the history
fix: Unknown key: 161 on AZERTY keyboard
  • Loading branch information
gucio321 authored Apr 26, 2024
2 parents b299dac + 91072b1 commit 94d9490
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 94d9490

Please sign in to comment.