UI: Disable fullscreen toggle when clicking outside screen when playing zapper/mouse games
This commit is contained in:
parent
22ce85fa9c
commit
eb0601a2d1
2 changed files with 5 additions and 10 deletions
|
@ -20,7 +20,7 @@ namespace Mesen.GUI.Controls
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
private bool NeedMouseIcon
|
||||
public bool NeedMouseIcon
|
||||
{
|
||||
get { return InteropEmu.GetExpansionDevice() == InteropEmu.ExpansionPortDevice.OekaKidsTablet || InteropEmu.HasZapper(); }
|
||||
}
|
||||
|
@ -40,14 +40,6 @@ namespace Mesen.GUI.Controls
|
|||
_cursorHidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnDoubleClick(EventArgs e)
|
||||
{
|
||||
if(!this.NeedMouseIcon && !InteropEmu.HasArkanoidPaddle()) {
|
||||
//Disable double clicking (used to switch to fullscreen mode) when using zapper/arkanoid controller
|
||||
base.OnDoubleClick(e);
|
||||
}
|
||||
}
|
||||
|
||||
private void ctrlRenderer_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
|
|
|
@ -1390,7 +1390,10 @@ namespace Mesen.GUI.Forms
|
|||
|
||||
private void ctrlRenderer_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
SetFullscreenState(!_fullscreenMode);
|
||||
if(!ctrlRenderer.NeedMouseIcon && !InteropEmu.HasArkanoidPaddle()) {
|
||||
//Disable double clicking (used to switch to fullscreen mode) when using zapper/arkanoid controller
|
||||
SetFullscreenState(!_fullscreenMode);
|
||||
}
|
||||
}
|
||||
|
||||
private void mnuScaleCustom_Click(object sender, EventArgs e)
|
||||
|
|
Loading…
Add table
Reference in a new issue