@@ -511,40 +511,51 @@ public class Configuration : INotifyPropertyChanged
511511
512512 public int UpdateDelay { get ; set ; } = 30 ;
513513
514- public double Fps
515- {
516- get => 1000d / UpdateDelay ;
517- }
514+ public double Fps => 1000d / UpdateDelay ;
518515
519516 [ JsonProperty ( "updates_check_on_start_up" ) ] public bool UpdatesCheckOnStartUp { get ; set ; } = true ;
520- [ JsonProperty ( "start_silently" ) ] public bool StartSilently { get ; set ; } = false ;
517+ [ JsonProperty ( "start_silently" ) ] public bool StartSilently { get ; set ; }
521518 [ JsonProperty ( "close_mode" ) ] public AppExitMode CloseMode { get ; set ; } = AppExitMode . Ask ;
522519 [ JsonProperty ( "mouse_orientation" ) ] public MouseOrientationType MouseOrientation { get ; set ; } = MouseOrientationType . RightHanded ;
523- [ JsonProperty ( "keyboard_brand" ) ] public PreferredKeyboard KeyboardBrand { get ; set ; } = PreferredKeyboard . None ;
520+ [ JsonProperty ( "keyboard_brand" ) ] public PreferredKeyboard KeyboardBrand { get ; set ; } = PreferredKeyboard . GenericLaptopNumpad ;
524521 [ JsonProperty ( "keyboard_localization" ) ] public PreferredKeyboardLocalization KeyboardLocalization { get ; set ; } = PreferredKeyboardLocalization . None ;
525- [ JsonProperty ( "mouse_preference" ) ] public PreferredMouse MousePreference { get ; set ; } = PreferredMouse . None ;
522+ [ JsonProperty ( "mouse_preference" ) ] public PreferredMouse MousePreference { get ; set ; } = PreferredMouse . Generic_Peripheral ;
526523 [ JsonProperty ( "mousepad_preference" ) ] public PreferredMousepad MousepadPreference { get ; set ; } = PreferredMousepad . None ;
527524 [ JsonProperty ( "virtualkeyboard_keycap_type" ) ] public KeycapType VirtualkeyboardKeycapType { get ; set ; } = KeycapType . Default ;
528525 [ JsonProperty ( "detection_mode" ) ] public ApplicationDetectionMode DetectionMode { get ; set ; } = ApplicationDetectionMode . WindowsEvents ;
529- [ JsonProperty ( "devices_disable_keyboard" ) ] public bool DevicesDisableKeyboard { get ; set ; } = false ;
530- [ JsonProperty ( "devices_disable_mouse" ) ] public bool DevicesDisableMouse { get ; set ; } = false ;
531- [ JsonProperty ( "devices_disable_headset" ) ] public bool DevicesDisableHeadset { get ; set ; } = false ;
532- [ JsonProperty ( "unified_hid_disabled" ) ] public bool UnifiedHidDisabled { get ; set ; } = false ;
526+ [ JsonProperty ( "devices_disable_keyboard" ) ] public bool DevicesDisableKeyboard { get ; set ; }
527+ [ JsonProperty ( "devices_disable_mouse" ) ] public bool DevicesDisableMouse { get ; set ; }
528+ [ JsonProperty ( "devices_disable_headset" ) ] public bool DevicesDisableHeadset { get ; set ; }
529+ [ JsonProperty ( "unified_hid_disabled" ) ] public bool UnifiedHidDisabled { get ; set ; } = true ;
533530 public bool OverlaysInPreview { get ; set ; } = true ;
534531
535- public ObservableCollection < string > ExcludedPrograms { get ; set ; } = new ObservableCollection < string > ( ) ;
536- public HashSet < string > excluded_programs { set => ExcludedPrograms = new ObservableCollection < string > ( value ) ; } // Write-only compatibility property to set the ExcludedPrograms observable collection.
532+ public ObservableCollection < string > ExcludedPrograms { get ; set ; } = new ( ) ;
537533
538- public ObservableCollection < Type > DevicesDisabled { get ; set ; } = new ObservableCollection < Type > ( ) ;
539- public HashSet < Type > devices_disabled { set => DevicesDisabled = new ObservableCollection < Type > ( value ) ; } // Write-only compatibility property to set the DevicesDisabled observable collection.
534+ public ObservableCollection < Type > DevicesDisabled { get ; set ; } = new ( )
535+ {
536+ typeof ( Devices . Asus . AsusDevice ) ,
537+ typeof ( Devices . AtmoOrbDevice . AtmoOrbDevice ) ,
538+ typeof ( Devices . Clevo . ClevoDevice ) ,
539+ typeof ( Devices . Drevo . DrevoDevice ) ,
540+ typeof ( Devices . Ducky . DuckyDevice ) ,
541+ typeof ( Devices . Roccat . RoccatDevice ) ,
542+ typeof ( Devices . Omen . OmenDevices ) ,
543+ typeof ( Devices . Dualshock . DualshockDevice ) ,
544+ typeof ( Devices . Creative . SoundBlasterXDevice ) ,
545+ typeof ( Devices . UnifiedHID . UnifiedHIDDevice ) ,
546+ typeof ( Devices . Uniwill . UniwillDevice ) ,
547+ typeof ( Devices . Vulcan . VulcanDevice ) ,
548+ typeof ( Devices . Wooting . WootingDevice ) ,
549+ typeof ( Devices . YeeLight . YeeLightDevice ) ,
550+ } ;
540551
541552 //Blackout and Night theme
542- [ JsonProperty ( "time_based_dimming_enabled" ) ] public bool TimeBasedDimmingEnabled { get ; set ; } = false ;
543- [ JsonProperty ( "time_based_dimming_affect_games" ) ] public bool TimeBasedDimmingAffectGames { get ; set ; } = false ;
553+ [ JsonProperty ( "time_based_dimming_enabled" ) ] public bool TimeBasedDimmingEnabled { get ; set ; }
554+ [ JsonProperty ( "time_based_dimming_affect_games" ) ] public bool TimeBasedDimmingAffectGames { get ; set ; }
544555 [ JsonProperty ( "time_based_dimming_start_hour" ) ] public int TimeBasedDimmingStartHour { get ; set ; } = 21 ;
545- [ JsonProperty ( "time_based_dimming_start_minute" ) ] public int TimeBasedDimmingStartMinute { get ; set ; } = 0 ;
556+ [ JsonProperty ( "time_based_dimming_start_minute" ) ] public int TimeBasedDimmingStartMinute { get ; set ; }
546557 [ JsonProperty ( "time_based_dimming_end_hour" ) ] public int TimeBasedDimmingEndHour { get ; set ; } = 8 ;
547- [ JsonProperty ( "time_based_dimming_end_minute" ) ] public int TimeBasedDimmingEndMinute { get ; set ; } = 0 ;
558+ [ JsonProperty ( "time_based_dimming_end_minute" ) ] public int TimeBasedDimmingEndMinute { get ; set ; }
548559
549560 [ JsonProperty ( "nighttime_enabled" ) ] public bool NighttimeEnabled { get ; set ; } = false ;
550561 [ JsonProperty ( "nighttime_start_hour" ) ] public int NighttimeStartHour { get ; set ; } = 20 ;
0 commit comments