Skip to content

Commit

Permalink
Fixed names in IMGUI_KEYS (#39)
Browse files Browse the repository at this point in the history
Some of the names in IMGUI_KEYS didn't match those defined in extension_imgui.cpp causing few keys to never being sent to IMGUI
  • Loading branch information
dima13230 committed Dec 6, 2023
1 parent e7585a1 commit 6ca062c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions imgui/imgui.script
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ end

local IMGUI_KEYS = {
[hash("key_tab")] = imgui.KEY_TAB,
[hash("key_left")] = imgui.KEY_LEFT,
[hash("key_right")] = imgui.KEY_RIGHT,
[hash("key_up")] = imgui.KEY_UP,
[hash("key_down")] = imgui.KEY_DOWN,
[hash("key_left")] = imgui.KEY_LEFTARROW,
[hash("key_right")] = imgui.KEY_RIGHTARROW,
[hash("key_up")] = imgui.KEY_UPARROW,
[hash("key_down")] = imgui.KEY_DOWNARROW,
[hash("key_pageup")] = imgui.KEY_PAGEUP,
[hash("key_pagedown")] = imgui.KEY_PAGEDOWN,
[hash("key_home")] = imgui.KEY_HOME,
Expand All @@ -58,8 +58,8 @@ local IMGUI_KEYS = {
[hash("key_backspace")] = imgui.KEY_BACKSPACE,
[hash("key_space")] = imgui.KEY_SPACE,
[hash("key_enter")] = imgui.KEY_ENTER,
[hash("key_esc")] = imgui.KEY_ESC,
[hash("key_numpad_enter")] = imgui.KEY_NUMPAD_ENTER,
[hash("key_esc")] = imgui.KEY_ESCAPE,
[hash("key_numpad_enter")] = imgui.KEY_KEYPADENTER,
[hash("key_a")] = imgui.KEY_A,
[hash("key_c")] = imgui.KEY_C,
[hash("key_v")] = imgui.KEY_V,
Expand Down

0 comments on commit 6ca062c

Please sign in to comment.