7 static void (*keyboardInputCallback) (int, int, int, int);
11 void onKeyboardEvent(GLFWwindow* window, int key, int scancode, int action, int mods) {
12 if (!(mods & GLFW_MOD_CONTROL)) {
13 if (keyboardInputCallback) {
14 keyboardInputCallback(key, scancode, action, mods);
21 if (action == GLFW_PRESS) {
22 debugScene = !debugScene;
26 if (action == GLFW_PRESS) {
27 debugRender = !debugRender;
35 void setKeyboardInputCallback(void (*callback) (int, int, int, int)) {
36 keyboardInputCallback = callback;