Remove deprecated 'Keyboard::Key' enumerators and adjust usages

This commit is contained in:
Vittorio Romeo 2021-12-09 00:48:24 +00:00
parent 21d594a765
commit 756a399909
2 changed files with 6 additions and 14 deletions

View File

@ -189,7 +189,7 @@ int main()
{ {
switch (event.key.code) switch (event.key.code)
{ {
case sf::Keyboard::Return: generateTerrain(terrainStagingBuffer.data()); break; case sf::Keyboard::Enter: generateTerrain(terrainStagingBuffer.data()); break;
case sf::Keyboard::Down: currentSetting = (currentSetting + 1) % settingCount; break; case sf::Keyboard::Down: currentSetting = (currentSetting + 1) % settingCount; break;
case sf::Keyboard::Up: currentSetting = (currentSetting + settingCount - 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::Left: *(settings[currentSetting].value) -= 0.1f; break;

View File

@ -150,15 +150,7 @@ public:
F15, //!< The F15 key F15, //!< The F15 key
Pause, //!< The Pause key Pause, //!< The Pause key
KeyCount, //!< Keep last -- the total number of keyboard keys 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
}; };
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////