From 047936007219ed4deb6b9c6e9ccfcec536c1acbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 13 Jan 2019 13:38:08 +0100 Subject: [PATCH] Platform: deprecate typo'd key name in GlfwApplication. Ugh. --- doc/changelog.dox | 7 +++++-- src/Magnum/Platform/GlfwApplication.h | 10 +++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/changelog.dox b/doc/changelog.dox index 53d1ae806..61a2c8515 100644 --- a/doc/changelog.dox +++ b/doc/changelog.dox @@ -166,9 +166,12 @@ See also: @subsection changelog-latest-deprecated Deprecated APIs -- `TextureTools::distanceField()` is deprecated due to inefficiency of its - statelessness when doing batch processing. Use the +- @cpp TextureTools::distanceField() @ce is deprecated due to inefficiency of + its statelessness when doing batch processing. Use the @ref TextureTools::DistanceField class instead. +- @cpp Platform::GlfwApplication::KeyEvent::Key::Smicolon @ce has a typo and + so is deprecated in favor of + @ref Platform::GlfwApplication::KeyEvent::Key::Semicolon @subsection changelog-latest-compatibility Potential compatibility breakages, removed APIs diff --git a/src/Magnum/Platform/GlfwApplication.h b/src/Magnum/Platform/GlfwApplication.h index 998430903..63faec92a 100644 --- a/src/Magnum/Platform/GlfwApplication.h +++ b/src/Magnum/Platform/GlfwApplication.h @@ -1408,7 +1408,15 @@ class GlfwApplication::KeyEvent: public GlfwApplication::InputEvent { Slash = GLFW_KEY_SLASH, /**< Slash */ /* Note: This may only be represented as SHIFT + 5 */ Percent = '%', /**< Percent */ - Smicolon = GLFW_KEY_SEMICOLON, /**< Semicolon */ + Semicolon = GLFW_KEY_SEMICOLON, /**< Semicolon */ + + #ifdef MAGNUM_BUILD_DEPRECATED + /** Semicolon + * @deprecated Use @ref Key::Semicolon instead. + */ + Smicolon CORRADE_DEPRECATED_ENUM("use Key::Semicolon instead") = Semicolon, + #endif + Equal = GLFW_KEY_EQUAL, /**< Equal */ Zero = GLFW_KEY_0, /**< Zero */