mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Update migration.md
Fixing KeyPresssed typo
This commit is contained in:
parent
18eb48b13e
commit
aef34af556
@ -131,7 +131,7 @@ const auto onClose = [&window](const sf::Event::Closed&)
|
|||||||
window.close();
|
window.close();
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto onKeyPressed = [&window](const sf::Event::KeyPresssed& keyPressed)
|
const auto onKeyPressed = [&window](const sf::Event::KeyPressed& keyPressed)
|
||||||
{
|
{
|
||||||
if (keyPressed.scancode == sf::Keyboard::Scancode::Escape)
|
if (keyPressed.scancode == sf::Keyboard::Scancode::Escape)
|
||||||
window.close();
|
window.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user