Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ void keyboardDown(unsigned char key, int x, int y) {

io.AddKeyEvent(keyToImGuiKey(key), true);

//forward to ImGui GLUT backend
ImGui_ImplGLUT_KeyboardFunc(key, x, y);

//std::cout << "Down key: " << key << ", mod: " << mods << std::endl;
}

Expand All @@ -353,6 +356,8 @@ void keyboardUp(unsigned char key, int x, int y) {

io.AddKeyEvent(keyToImGuiKey(key), false);

ImGui_ImplGLUT_KeyboardUpFunc(key, x, y);

//std::cout << "Up key: " << key << ", mod: " << mods << std::endl;
}

Expand Down