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 */