You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/imgui/imgui/inputs.kt
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,17 @@ import imgui.Context as g
12
12
13
13
interfaceimgui_inputs {
14
14
15
-
//IMGUI_API int GetKeyIndex(ImGuiKey imgui_key);
16
-
//IMGUI_API bool IsKeyDown(int user_key_index); // is key being held. == io.KeysDown[user_key_index]. note that imgui doesn't know the semantic of each entry of io.KeyDown[]. Use your own indices/enums according to how your backend/engine stored them into KeyDown[]!
15
+
fungetKeyIndex(imguiKey:Int) =IO.keyMap[imguiKey]
16
+
17
+
/** is key being held. == io.KeysDown[user_key_index]. note that imgui doesn't know the semantic of each entry of io.KeyDown[].
18
+
* Use your own indices/enums according to how your backend/engine stored them into KeyDown[]! */
0 commit comments