Browse Source

Platform: deprecate typo'd key name in GlfwApplication.

Ugh.
simd
Vladimír Vondruš 7 years ago
parent
commit
0479360072
  1. 7
      doc/changelog.dox
  2. 10
      src/Magnum/Platform/GlfwApplication.h

7
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

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

Loading…
Cancel
Save