UI: Disable mouse capture mode when focus is lost

This commit is contained in:
Sour 2017-12-21 22:06:09 -05:00
parent ebe5046770
commit 633fe28c95

View file

@ -94,6 +94,8 @@ namespace Mesen.GUI
Cursor.Position = centerPos;
}
} else {
_mouseCaptured = false;
if(!InteropEmu.IsRunning() || InteropEmu.IsPaused()) {
ShowMouse();
}
@ -125,6 +127,10 @@ namespace Mesen.GUI
return false;
}
if(InteropEmu.CheckFlag(EmulationFlags.InBackground)) {
return false;
}
switch(InteropEmu.GetExpansionDevice()) {
case InteropEmu.ExpansionPortDevice.ArkanoidController:
case InteropEmu.ExpansionPortDevice.HoriTrack: