Skip to content

Commit 820e5c3

Browse files
committed
Add mapping for the space key.
1 parent 475146a commit 820e5c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ImGui.NET.SampleProgram/ImGuiController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ private static void SetKeyMappings()
413413
io.KeyMap[(int)ImGuiKey.Backspace] = (int)Key.BackSpace;
414414
io.KeyMap[(int)ImGuiKey.Enter] = (int)Key.Enter;
415415
io.KeyMap[(int)ImGuiKey.Escape] = (int)Key.Escape;
416+
io.KeyMap[(int)ImGuiKey.Space] = (int)Key.Space;
416417
io.KeyMap[(int)ImGuiKey.A] = (int)Key.A;
417418
io.KeyMap[(int)ImGuiKey.C] = (int)Key.C;
418419
io.KeyMap[(int)ImGuiKey.V] = (int)Key.V;

0 commit comments

Comments
 (0)