mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Exit on Esc, pause on F10
This commit is contained in:
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user