summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorRael Gugelmin Cunha <rael.gc@gmail.com>2017-11-11 12:46:15 -0200
committerRael Gugelmin Cunha <rael.gc@gmail.com>2017-11-11 12:51:54 -0200
commit3b2b2de1597e7565623cd78ef30dddf0b45ac053 (patch)
treeefda90a8f3bd0c13298c5e06f7b68a368d23525a /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent338bffd1e79f53996202bf49fc864b6ab13b9482 (diff)
Exit on Esc, pause on F10
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 5619689abc..9582facf2d 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -241,6 +241,10 @@ class PlatformX11 : public Platform
key = XLookupKeysym((XKeyEvent*)&event, 0);
if (key == XK_Escape)
{
+ s_shutdown_requested.Set();
+ }
+ else if (key == XK_F10)
+ {
if (Core::GetState() == Core::State::Running)
{
if (SConfig::GetInstance().bHideCursor)