mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +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();
|
||||
};
|
||||
|
||||
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)
|
||||
window.close();
|
||||
|
Loading…
Reference in New Issue
Block a user