Skip to content

Commit

Permalink
Merge pull request #6187 from raelgc/1-exit-on-esc
Browse files Browse the repository at this point in the history
Add an exit key to `dolphin-emu-nogui`
  • Loading branch information
Helios747 authored Nov 27, 2017
2 parents 9fe5dd7 + 3b2b2de commit 7c96e51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/DolphinNoGUI/MainNoGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7c96e51

Please sign in to comment.