Controller Config menu item - disable based on ControllerDefinition having any buttons rather than check for Null Emulator
This commit is contained in:
parent
8cffecede9
commit
745b8f555b
|
@ -781,7 +781,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void ConfigSubMenu_DropDownOpened(object sender, EventArgs e)
|
||||
{
|
||||
ControllersMenuItem.Enabled = !Global.Emulator.IsNull();
|
||||
ControllersMenuItem.Enabled = Global.Emulator.ControllerDefinition.Any();
|
||||
}
|
||||
|
||||
private void FrameSkipMenuItem_DropDownOpened(object sender, EventArgs e)
|
||||
|
|
|
@ -162,6 +162,11 @@ namespace BizHawk.Emulation.Common
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool Any()
|
||||
{
|
||||
return BoolButtons.Any() || FloatControls.Any();
|
||||
}
|
||||
}
|
||||
|
||||
public interface IController
|
||||
|
|
Loading…
Reference in New Issue