Browse Source

Platform: send GLFW_REPEAT events through `keyPressEvent()`

pull/165/merge
Elliot Saba 10 years ago committed by Vladimír Vondruš
parent
commit
c5e22ae560
  1. 4
      src/Magnum/Platform/GlfwApplication.cpp

4
src/Magnum/Platform/GlfwApplication.cpp

@ -168,7 +168,9 @@ void GlfwApplication::staticKeyEvent(GLFWwindow*, int key, int, int action, int
_instance->keyPressEvent(e);
} else if(action == GLFW_RELEASE) {
_instance->keyReleaseEvent(e);
} /* we don't handle GLFW_REPEAT */
} else if(action == GLFW_REPEAT) {
_instance->keyPressEvent(e);
}
}
void GlfwApplication::staticMouseMoveEvent(GLFWwindow* window, double x, double y) {

Loading…
Cancel
Save