public IntvControllerSettings(ISettingsAdapter settable) { _settable = settable; _syncSettings = (Intellivision.IntvSyncSettings)_settable.GetSyncSettings(); InitializeComponent(); Icon = Properties.Resources.GameControllerIcon; }
public IntvControllerSettings( MainForm mainForm, Intellivision.IntvSyncSettings syncSettings) { _mainForm = mainForm; _syncSettings = syncSettings; InitializeComponent(); }
public IntvControllerSettings( IMainFormForConfig mainForm, Intellivision.IntvSyncSettings syncSettings) { _mainForm = mainForm; _syncSettings = syncSettings; InitializeComponent(); Icon = Properties.Resources.GameController_MultiSize; }
private void IntvControllerSettings_Load(object sender, EventArgs e) { _syncSettings = ((Intellivision)Global.Emulator).GetSyncSettings().Clone(); var possibleControllers = IntellivisionControllerDeck.ValidControllerTypes.Select(t => t.Key); foreach (var val in possibleControllers) { Port1ComboBox.Items.Add(val); Port2ComboBox.Items.Add(val); } Port1ComboBox.SelectedItem = _syncSettings.Port1; Port2ComboBox.SelectedItem = _syncSettings.Port2; }