UI: Disable mouse capture mode when focus is lost
This commit is contained in:
parent
ebe5046770
commit
633fe28c95
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue