Merge pull request #6187 from raelgc/1-exit-on-esc

Add an exit key to `dolphin-emu-nogui`
This commit is contained in:
Anthony 2017-11-27 13:30:33 -08:00 committed by GitHub
commit 7c96e51bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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