public frmControllerConfig(ControllerInfo controllerInfo, int portNumber, ConsoleType consoleType) { InitializeComponent(); Entity = controllerInfo; AddBinding("TurboSpeed", trkTurboSpeed); ctrlStandardController0.Initialize(controllerInfo.Keys[0]); ctrlStandardController1.Initialize(controllerInfo.Keys[1]); ctrlStandardController2.Initialize(controllerInfo.Keys[2]); ctrlStandardController3.Initialize(controllerInfo.Keys[3]); if (portNumber == 1 && consoleType == ConsoleType.Famicom) { ctrlStandardController0.ShowMicrophone = true; ctrlStandardController1.ShowMicrophone = true; ctrlStandardController2.ShowMicrophone = true; ctrlStandardController3.ShowMicrophone = true; } this.btnSelectPreset.Image = BaseControl.DownArrow; ResourceHelper.ApplyResources(this, mnuStripPreset); this.Text += ": " + ResourceHelper.GetMessage("PlayerNumber", (portNumber + 1).ToString()); }
public frmControllerConfig(ControllerConfig cfg, int portNumber) : base(cfg) { InitializeComponent(); if (!this.DesignMode) { _portNumber = portNumber; SetMainTab(this.tabMain); //AddBinding("TurboSpeed", trkTurboSpeed); ctrlController0.Initialize(cfg.Keys.Mapping1); ctrlController1.Initialize(cfg.Keys.Mapping2); ctrlController2.Initialize(cfg.Keys.Mapping3); ctrlController3.Initialize(cfg.Keys.Mapping4); ctrlController0.PortNumber = portNumber; ctrlController1.PortNumber = portNumber; ctrlController2.PortNumber = portNumber; ctrlController3.PortNumber = portNumber; this.btnSelectPreset.Image = BaseControl.DownArrow; ResourceHelper.ApplyResources(this, mnuStripPreset); this.Text += ": " + ResourceHelper.GetMessage("PlayerNumber", (portNumber + 1).ToString()); } }
public frmControllerConfig(ControllerInfo controllerInfo, int portNumber, ConsoleType consoleType, InteropEmu.ControllerType controllerType) { InitializeComponent(); if (!this.DesignMode) { SetMainTab(this.tabMain); Entity = controllerInfo; AddBinding("TurboSpeed", trkTurboSpeed); ctrlStandardController0.Initialize(controllerInfo.Keys[0]); ctrlStandardController1.Initialize(controllerInfo.Keys[1]); ctrlStandardController2.Initialize(controllerInfo.Keys[2]); ctrlStandardController3.Initialize(controllerInfo.Keys[3]); ctrlStandardController0.PortNumber = portNumber; ctrlStandardController1.PortNumber = portNumber; ctrlStandardController2.PortNumber = portNumber; ctrlStandardController3.PortNumber = portNumber; if (portNumber == 1 && consoleType == ConsoleType.Famicom) { ctrlStandardController0.ShowMicrophone = true; ctrlStandardController1.ShowMicrophone = true; ctrlStandardController2.ShowMicrophone = true; ctrlStandardController3.ShowMicrophone = true; } if (controllerType == InteropEmu.ControllerType.SnesController) { ctrlStandardController0.Type = StandardControllerType.SnesController; ctrlStandardController1.Type = StandardControllerType.SnesController; ctrlStandardController2.Type = StandardControllerType.SnesController; ctrlStandardController3.Type = StandardControllerType.SnesController; } if (InteropEmu.IsVsSystem()) { ctrlStandardController0.Type = StandardControllerType.VsSystem; ctrlStandardController1.Type = StandardControllerType.VsSystem; ctrlStandardController2.Type = StandardControllerType.VsSystem; ctrlStandardController3.Type = StandardControllerType.VsSystem; } this.btnSelectPreset.Image = BaseControl.DownArrow; ResourceHelper.ApplyResources(this, mnuStripPreset); this.Text += ": " + ResourceHelper.GetMessage("PlayerNumber", (portNumber + 1).ToString()); } }
public frmControllerConfig(ControllerInfo controllerInfo) { InitializeComponent(); Entity = controllerInfo; AddBinding("TurboSpeed", trkTurboSpeed); ctrlStandardController0.Initialize(controllerInfo.Keys[0]); ctrlStandardController1.Initialize(controllerInfo.Keys[1]); ctrlStandardController2.Initialize(controllerInfo.Keys[2]); ctrlStandardController3.Initialize(controllerInfo.Keys[3]); ResourceHelper.ApplyResources(this, mnuStripPreset); }
public frmVideoConfig() { InitializeComponent(); Entity = ConfigManager.Config.VideoInfo; AddBinding("ShowFPS", chkShowFps); AddBinding("UseBilinearInterpolation", chkBilinearInterpolation); AddBinding("VerticalSync", chkVerticalSync); AddBinding("UseHdPacks", chkUseHdPacks); AddBinding("VideoScale", nudScale); AddBinding("AspectRatio", cboAspectRatio); AddBinding("VideoFilter", cboFilter); AddBinding("OverscanLeft", nudOverscanLeft); AddBinding("OverscanRight", nudOverscanRight); AddBinding("OverscanTop", nudOverscanTop); AddBinding("OverscanBottom", nudOverscanBottom); AddBinding("Brightness", trkBrightness); AddBinding("Contrast", trkContrast); AddBinding("Hue", trkHue); AddBinding("Saturation", trkSaturation); AddBinding("ScanlineIntensity", trkScanlines); AddBinding("NtscArtifacts", trkArtifacts); AddBinding("NtscBleed", trkBleed); AddBinding("NtscFringing", trkFringing); AddBinding("NtscGamma", trkGamma); AddBinding("NtscResolution", trkResolution); AddBinding("NtscSharpness", trkSharpness); AddBinding("NtscMergeFields", chkMergeFields); AddBinding("DisableBackground", chkDisableBackground); AddBinding("DisableSprites", chkDisableSprites); AddBinding("ForceBackgroundFirstColumn", chkForceBackgroundFirstColumn); AddBinding("ForceSpritesFirstColumn", chkForceSpritesFirstColumn); _paletteData = InteropEmu.GetRgbPalette(); RefreshPalette(); toolTip.SetToolTip(picHdNesTooltip, ResourceHelper.GetMessage("HDNesTooltip")); UpdateOverscanImage(); ResourceHelper.ApplyResources(this, contextPaletteList); ResourceHelper.ApplyResources(this, contextPicturePresets); }
public frmVideoConfig() { InitializeComponent(); Entity = ConfigManager.Config.VideoInfo; AddBinding("ShowFPS", chkShowFps); AddBinding("UseBilinearInterpolation", chkBilinearInterpolation); AddBinding("VerticalSync", chkVerticalSync); AddBinding("UseHdPacks", chkUseHdPacks); AddBinding("IntegerFpsMode", chkIntegerFpsMode); AddBinding("FullscreenForceIntegerScale", chkFullscreenForceIntegerScale); AddBinding("UseExclusiveFullscreen", chkUseExclusiveFullscreen); AddBinding("ExclusiveFullscreenRefreshRate", cboRefreshRate); AddBinding("VideoScale", nudScale); AddBinding("AspectRatio", cboAspectRatio); AddBinding("CustomAspectRatio", nudCustomRatio); AddBinding("VideoFilter", cboFilter); AddBinding("ScreenRotation", cboScreenRotation); AddBinding("OverscanLeft", nudOverscanLeft); AddBinding("OverscanRight", nudOverscanRight); AddBinding("OverscanTop", nudOverscanTop); AddBinding("OverscanBottom", nudOverscanBottom); AddBinding("Brightness", trkBrightness); AddBinding("Contrast", trkContrast); AddBinding("Hue", trkHue); AddBinding("Saturation", trkSaturation); AddBinding("ScanlineIntensity", trkScanlines); AddBinding("NtscArtifacts", trkArtifacts); AddBinding("NtscBleed", trkBleed); AddBinding("NtscFringing", trkFringing); AddBinding("NtscGamma", trkGamma); AddBinding("NtscResolution", trkResolution); AddBinding("NtscSharpness", trkSharpness); AddBinding("NtscMergeFields", chkMergeFields); AddBinding("NtscYFilterLength", trkYFilterLength); AddBinding("NtscIFilterLength", trkIFilterLength); AddBinding("NtscQFilterLength", trkQFilterLength); AddBinding("DisableBackground", chkDisableBackground); AddBinding("DisableSprites", chkDisableSprites); AddBinding("ForceBackgroundFirstColumn", chkForceBackgroundFirstColumn); AddBinding("ForceSpritesFirstColumn", chkForceSpritesFirstColumn); AddBinding("UseCustomVsPalette", chkUseCustomVsPalette); AddBinding("ShowColorIndexes", chkShowColorIndexes); _paletteData = InteropEmu.GetRgbPalette(); RefreshPalette(); toolTip.SetToolTip(picHdNesTooltip, ResourceHelper.GetMessage("HDNesTooltip")); btnSelectPreset.Image = BaseControl.DownArrow; btnSelectPalette.Image = BaseControl.DownArrow; UpdateOverscanImage(); ResourceHelper.ApplyResources(this, contextPaletteList); ResourceHelper.ApplyResources(this, contextPicturePresets); if (Program.IsMono) { //Not available in the linux build (for now) chkUseExclusiveFullscreen.Visible = false; } }
protected override void OnLoad(EventArgs e) { ResourceHelper.ApplyResources(this, typeof(BaseInputConfigForm).Name); base.OnLoad(e); }
public frmVideoConfig() { InitializeComponent(); ThemeHelper.FixMonoColors(contextPaletteList); ThemeHelper.FixMonoColors(contextPicturePresets); Entity = ConfigManager.Config.VideoInfo; AddBinding("ShowFPS", chkShowFps); AddBinding("UseBilinearInterpolation", chkBilinearInterpolation); AddBinding("VerticalSync", chkVerticalSync); AddBinding("UseHdPacks", chkUseHdPacks); AddBinding("IntegerFpsMode", chkIntegerFpsMode); AddBinding("FullscreenForceIntegerScale", chkFullscreenForceIntegerScale); AddBinding("UseExclusiveFullscreen", chkUseExclusiveFullscreen); AddBinding("ExclusiveFullscreenRefreshRate", cboRefreshRate); AddBinding("ExclusiveFullscreenRefreshRate2", cboRefreshRate2); AddBinding("VideoScale", nudScale); AddBinding("AspectRatio", cboAspectRatio); AddBinding("CustomAspectRatio", nudCustomRatio); AddBinding("VideoFilter", cboFilter); AddBinding("ScreenRotation", cboScreenRotation); AddBinding("OverscanLeft", nudOverscanLeft); AddBinding("OverscanRight", nudOverscanRight); AddBinding("OverscanTop", nudOverscanTop); AddBinding("OverscanBottom", nudOverscanBottom); AddBinding("Brightness", trkBrightness); AddBinding("Contrast", trkContrast); AddBinding("Hue", trkHue); AddBinding("Saturation", trkSaturation); AddBinding("ScanlineIntensity", trkScanlines); AddBinding("NtscArtifacts", trkArtifacts); AddBinding("NtscBleed", trkBleed); AddBinding("NtscFringing", trkFringing); AddBinding("NtscGamma", trkGamma); AddBinding("NtscResolution", trkResolution); AddBinding("NtscSharpness", trkSharpness); AddBinding("NtscMergeFields", chkMergeFields); AddBinding("NtscVerticalBlend", chkVerticalBlend); AddBinding("NtscColorimetryCorrection", chkColorimetryCorrection); AddBinding("NtscYFilterLength", trkYFilterLength); AddBinding("NtscIFilterLength", trkIFilterLength); AddBinding("NtscQFilterLength", trkQFilterLength); AddBinding("RemoveSpriteLimit", chkRemoveSpriteLimit); AddBinding("AdaptiveSpriteLimit", chkAdaptiveSpriteLimit); AddBinding("DisableBackground", chkDisableBackground); AddBinding("DisableSprites", chkDisableSprites); AddBinding("ForceBackgroundFirstColumn", chkForceBackgroundFirstColumn); AddBinding("ForceSpritesFirstColumn", chkForceSpritesFirstColumn); AddBinding("UseCustomVsPalette", chkUseCustomVsPalette); AddBinding("ShowColorIndexes", chkShowColorIndexes); _paletteData = InteropEmu.GetRgbPalette(); if (!ConfigManager.Config.VideoInfo.IsFullColorPalette()) { Array.Resize(ref _paletteData, 64); } RefreshPalette(); toolTip.SetToolTip(picHdNesTooltip, ResourceHelper.GetMessage("HDNesTooltip")); cboFullscreenResolution.Items.Insert(0, ResourceHelper.GetMessage("DefaultResolution")); if (cboFullscreenResolution.Items.Contains(ConfigManager.Config.VideoInfo.FullscreenResolution)) { cboFullscreenResolution.SelectedItem = ConfigManager.Config.VideoInfo.FullscreenResolution; } else { cboFullscreenResolution.SelectedIndex = 0; } btnSelectPreset.Image = BaseControl.DownArrow; btnSelectPalette.Image = BaseControl.DownArrow; UpdateOverscanImage(picOverscan, (int)nudOverscanTop.Value, (int)nudOverscanBottom.Value, (int)nudOverscanLeft.Value, (int)nudOverscanRight.Value); UpdateOverscanImage(picGameSpecificOverscan, (int)nudGameSpecificOverscanTop.Value, (int)nudGameSpecificOverscanBottom.Value, (int)nudGameSpecificOverscanLeft.Value, (int)nudGameSpecificOverscanRight.Value); ResourceHelper.ApplyResources(this, contextPaletteList); ResourceHelper.ApplyResources(this, contextPicturePresets); if (Program.IsMono) { //Not available in the linux build (for now) chkUseExclusiveFullscreen.Visible = false; } }