Converted applicable enumerations to strongly typed enumerations.
This commit is contained in:
parent
b3b094fc91
commit
24db1dba1a
74 changed files with 1242 additions and 1251 deletions
examples/cocoa
|
@ -161,10 +161,10 @@ struct SFMLmainWindow
|
|||
|
||||
// Scaling
|
||||
/* /!\ we do this at 60fps so choose low scaling factor! /!\ */
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Up))
|
||||
self.mainWindow->sprite.scale(1.01f, 1.01f);
|
||||
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Down))
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Key::Down))
|
||||
self.mainWindow->sprite.scale(0.99f, 0.99f);
|
||||
|
||||
// Clear the window, display some stuff and display it into our view.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue