diff --git a/examples/island/Island.cpp b/examples/island/Island.cpp index ab70f621f..f79bafe32 100644 --- a/examples/island/Island.cpp +++ b/examples/island/Island.cpp @@ -189,11 +189,11 @@ int main() { switch (event.key.code) { - case sf::Keyboard::Return: generateTerrain(terrainStagingBuffer.data()); break; - case sf::Keyboard::Down: currentSetting = (currentSetting + 1) % settingCount; break; - case sf::Keyboard::Up: currentSetting = (currentSetting + settingCount - 1) % settingCount; break; - case sf::Keyboard::Left: *(settings[currentSetting].value) -= 0.1f; break; - case sf::Keyboard::Right: *(settings[currentSetting].value) += 0.1f; break; + case sf::Keyboard::Enter: generateTerrain(terrainStagingBuffer.data()); break; + case sf::Keyboard::Down: currentSetting = (currentSetting + 1) % settingCount; break; + case sf::Keyboard::Up: currentSetting = (currentSetting + settingCount - 1) % settingCount; break; + case sf::Keyboard::Left: *(settings[currentSetting].value) -= 0.1f; break; + case sf::Keyboard::Right: *(settings[currentSetting].value) += 0.1f; break; default: break; } } diff --git a/include/SFML/Window/Keyboard.hpp b/include/SFML/Window/Keyboard.hpp index 2fb320e3a..41b6b587a 100644 --- a/include/SFML/Window/Keyboard.hpp +++ b/include/SFML/Window/Keyboard.hpp @@ -150,15 +150,7 @@ public: F15, //!< The F15 key Pause, //!< The Pause key - KeyCount, //!< Keep last -- the total number of keyboard keys - - // Deprecated values: - - Dash = Hyphen, //!< \deprecated Use Hyphen instead - BackSpace = Backspace, //!< \deprecated Use Backspace instead - BackSlash = Backslash, //!< \deprecated Use Backslash instead - SemiColon = Semicolon, //!< \deprecated Use Semicolon instead - Return = Enter //!< \deprecated Use Enter instead + KeyCount //!< Keep last -- the total number of keyboard keys }; ////////////////////////////////////////////////////////////