From 820e5c37944c11d4fd59f214bc53a35bb7747838 Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Sat, 28 Nov 2020 21:40:49 -0800 Subject: [PATCH] Add mapping for the space key. --- src/ImGui.NET.SampleProgram/ImGuiController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImGui.NET.SampleProgram/ImGuiController.cs b/src/ImGui.NET.SampleProgram/ImGuiController.cs index 396517e..3c600ad 100644 --- a/src/ImGui.NET.SampleProgram/ImGuiController.cs +++ b/src/ImGui.NET.SampleProgram/ImGuiController.cs @@ -413,6 +413,7 @@ namespace ImGuiNET io.KeyMap[(int)ImGuiKey.Backspace] = (int)Key.BackSpace; io.KeyMap[(int)ImGuiKey.Enter] = (int)Key.Enter; io.KeyMap[(int)ImGuiKey.Escape] = (int)Key.Escape; + io.KeyMap[(int)ImGuiKey.Space] = (int)Key.Space; io.KeyMap[(int)ImGuiKey.A] = (int)Key.A; io.KeyMap[(int)ImGuiKey.C] = (int)Key.C; io.KeyMap[(int)ImGuiKey.V] = (int)Key.V;