From 91072b1127ba3e10a720a23a69390f69e8277909 Mon Sep 17 00:00:00 2001 From: Raph Date: Mon, 25 Mar 2024 21:41:33 +0100 Subject: [PATCH] fix key 161 on azerty keyboard --- Keycode.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Keycode.go b/Keycode.go index f2941b23..f7953aee 100644 --- a/Keycode.go +++ b/Keycode.go @@ -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. @@ -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 {