mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
Handle window close event
This commit is contained in:
parent
7f2c5a4645
commit
cdff0aa275
@ -113,6 +113,9 @@ int RWGame::run()
|
|||||||
break;
|
break;
|
||||||
case sf::Event::KeyPressed:
|
case sf::Event::KeyPressed:
|
||||||
globalKeyEvent(event);
|
globalKeyEvent(event);
|
||||||
|
break;
|
||||||
|
case sf::Event::Closed:
|
||||||
|
return 0;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user