Skip to content

Commit

Permalink
Examples: FreeGLUT: Fixed mapping of Space key. (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Jun 11, 2018
1 parent cdf51ca commit f96c7fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/imgui_impl_freeglut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ bool ImGui_ImplFreeGLUT_Init()
io.KeyMap[ImGuiKey_PageDown] = 256 + GLUT_KEY_PAGE_DOWN;
io.KeyMap[ImGuiKey_Home] = 256 + GLUT_KEY_HOME;
io.KeyMap[ImGuiKey_End] = 256 + GLUT_KEY_END;
io.KeyMap[ImGuiKey_Insert] = 256 + GLUT_KEY_INSERT;
io.KeyMap[ImGuiKey_Delete] = 127;
io.KeyMap[ImGuiKey_Backspace] = 8; // == CTRL+H
io.KeyMap[ImGuiKey_Space] = ' ';
io.KeyMap[ImGuiKey_Enter] = 13; // == CTRL+M
io.KeyMap[ImGuiKey_Escape] = 27;
io.KeyMap[ImGuiKey_Insert] = 256 + GLUT_KEY_INSERT;
io.KeyMap[ImGuiKey_A] = 'A';
io.KeyMap[ImGuiKey_C] = 'C';
io.KeyMap[ImGuiKey_V] = 'V';
Expand Down

0 comments on commit f96c7fa

Please sign in to comment.