8 static void (*keyboardInputCallback) (int, int, int, int);
12 void onKeyboardEvent(GLFWwindow* window UNUSED, int key, int scancode, int action, int mods) {
13 if (!(mods & GLFW_MOD_CONTROL)) {
14 if (keyboardInputCallback) {
15 keyboardInputCallback(key, scancode, action, mods);
22 if (action == GLFW_PRESS) {
23 debugScene = !debugScene;
27 if (action == GLFW_PRESS) {
28 debugRender = !debugRender;
36 void setKeyboardInputCallback(void (*callback) (int, int, int, int)) {
37 keyboardInputCallback = callback;