From bf76cdfa81c93f95ef454de0057f02cf2df56c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 1 Nov 2013 13:43:02 +0100 Subject: [PATCH] Platform: added no-op GlutApplication::keyReleaseEvent(). GLUT doesn't have key release events, this function is included only for compatibility with other toolkits and doesn't get called at all. --- src/Platform/GlutApplication.cpp | 1 + src/Platform/GlutApplication.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/Platform/GlutApplication.cpp b/src/Platform/GlutApplication.cpp index 7421467b6..07e6d0a49 100644 --- a/src/Platform/GlutApplication.cpp +++ b/src/Platform/GlutApplication.cpp @@ -109,6 +109,7 @@ void GlutApplication::staticMouseMoveEvent(int x, int y) { } void GlutApplication::keyPressEvent(KeyEvent&) {} +void GlutApplication::keyReleaseEvent(KeyEvent&) {} void GlutApplication::mousePressEvent(MouseEvent&) {} void GlutApplication::mouseReleaseEvent(MouseEvent&) {} void GlutApplication::mouseMoveEvent(MouseMoveEvent&) {} diff --git a/src/Platform/GlutApplication.h b/src/Platform/GlutApplication.h index 7d63bd477..c6b45e08f 100644 --- a/src/Platform/GlutApplication.h +++ b/src/Platform/GlutApplication.h @@ -198,6 +198,14 @@ class GlutApplication { */ virtual void keyPressEvent(KeyEvent& event); + /** + * @brief Key release event + * + * Included only for compatibility with other toolkits, doesn't get + * called at all. + */ + virtual void keyReleaseEvent(KeyEvent& event); + /*@}*/ /** @{ @name Mouse handling */