From c5e22ae560fbaf152b5645204bb8d8732685d5bc Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Tue, 16 Aug 2016 17:46:50 +0200 Subject: [PATCH] Platform: send GLFW_REPEAT events through `keyPressEvent()` --- src/Magnum/Platform/GlfwApplication.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index 6b40eda54..f5cd03abe 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/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) {