Exit on Esc, pause on F10

This commit is contained in:
Rael Gugelmin Cunha 2017-11-11 12:46:15 -02:00
parent 338bffd1e7
commit 3b2b2de159
1 changed files with 4 additions and 0 deletions

View File

@ -240,6 +240,10 @@ class PlatformX11 : public Platform
case KeyPress:
key = XLookupKeysym((XKeyEvent*)&event, 0);
if (key == XK_Escape)
{
s_shutdown_requested.Set();
}
else if (key == XK_F10)
{
if (Core::GetState() == Core::State::Running)
{