From a35531396502fa693d549efd1b7903a329990e52 Mon Sep 17 00:00:00 2001 From: Sour Date: Thu, 28 Dec 2017 17:13:59 -0500 Subject: [PATCH] UI: Don't allow mouse capture if no game is running --- GUI.NET/CursorManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GUI.NET/CursorManager.cs b/GUI.NET/CursorManager.cs index 0daad2d6..fa1cd34e 100644 --- a/GUI.NET/CursorManager.cs +++ b/GUI.NET/CursorManager.cs @@ -124,6 +124,10 @@ namespace Mesen.GUI { get { + if(!InteropEmu.IsRunning()) { + return false; + } + if(InteropEmu.IsPaused()) { return false; }