コード例 #1
0
        private void SNESControllerSettings_Load(object sender, EventArgs e)
        {
            LimitAnalogChangeCheckBox.Checked = _syncSettings.LimitAnalogChangeSensitivity;

            _suppressDropdownChangeEvents = true;
            Port1ComboBox.PopulateFromEnum(_syncSettings.LeftPort);
            Port2ComboBox.PopulateFromEnum(_syncSettings.RightPort);
            _suppressDropdownChangeEvents = false;
        }
コード例 #2
0
        private void SNESControllerSettings_Load(object sender, EventArgs e)
        {
            _syncSettings = ((LibsnesCore)Global.Emulator).GetSyncSettings().Clone();

            LimitAnalogChangeCheckBox.Checked = _syncSettings.LimitAnalogChangeSensitivity;

            _supressDropdownChangeEvents = true;
            Port1ComboBox.PopulateFromEnum <LibsnesControllerDeck.ControllerType>(_syncSettings.LeftPort);
            Port2ComboBox.PopulateFromEnum <LibsnesControllerDeck.ControllerType>(_syncSettings.RightPort);
            _supressDropdownChangeEvents = false;
        }
コード例 #3
0
 private void SNESControllerSettings_Load(object sender, EventArgs e)
 {
     _syncSettings = (Global.Emulator as LibsnesCore).SyncSettings.Clone();
     Port1ComboBox.PopulateFromEnum <LibsnesControllerDeck.ControllerType>(_syncSettings.LeftPort);
     Port2ComboBox.PopulateFromEnum <LibsnesControllerDeck.ControllerType>(_syncSettings.RightPort);
 }