Browse Source

Add debugging for scancodes

tags/v1.1.0
Andrew Belt 5 years ago
parent
commit
0ae792b425
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/window.cpp

+ 2
- 0
src/window.cpp View File

@@ -159,6 +159,8 @@ static void charCallback(GLFWwindow *win, unsigned int codepoint) {
}

static void keyCallback(GLFWwindow *win, int key, int scancode, int action, int mods) {
DEBUG("key %d scancode %d name '%s'", key, scancode, glfwGetKeyName(key, scancode));

Window *window = (Window*) glfwGetWindowUserPointer(win);
if (APP->event->handleKey(window->mousePos, key, scancode, action, mods))
return;


Loading…
Cancel
Save