Esempio n. 1
0
 private void ButtonResetBinds_OnClick(object sender, RoutedEventArgs e)
 {
     BindManager.ResetDefaults(Settings.Default.ModifierStyle);
     Settings.Default.BindingsModified = DateTime.Now;
     BindWriter.WriteBinds();
     RefreshBinds();
 }
Esempio n. 2
0
 private void ComboCurrentStyle_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!IsLoaded)
     {
         return;
     }
     Settings.Default.BindingsModified = DateTime.Now;
     BindManager.ResetDefaults(ComboCurrentStyle.SelectedIndex);
     BindWriter.WriteBinds();
     DoTransition();
 }
Esempio n. 3
0
 private void ComboButtonIcons_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (!IsLoaded)
     {
         return;
     }
     DoTransition();
     Settings.Default.BindingsModified = DateTime.Now;
     BindWriter.WriteBinds();
     MainWindow.UpdateButtonStyle();
 }
Esempio n. 4
0
        public static void SetKey(GamepadButton button, Key key)
        {
            var binding = CurrentKeybinds.First(bind => bind.BindType == button);

            binding.Key = key;

            SaveBindings();
            BindingsChanged?.Invoke(null, EventArgs.Empty);

            Properties.Settings.Default.BindingsModified = DateTime.Now;
            BindWriter.WriteBinds();
        }
Esempio n. 5
0
        private void CheckCustomBinding_Changed(object sender, RoutedEventArgs e)
        {
            if (!IsLoaded)
            {
                return;
            }

            BindManager.ResetDefaults(Settings.Default.ModifierStyle);
            Settings.Default.BindingsModified = DateTime.Now;
            BindWriter.WriteBinds();
            RefreshBinds();

            DoTransition();
        }
Esempio n. 6
0
 private void CheckExportBindings_OnChecked(object sender, RoutedEventArgs e)
 {
     BindWriter.WriteBinds();
 }