SteamController: Allow to EnableDS4Support=false

This commit is contained in:
Kamil Trzciński 2023-05-21 16:44:01 +02:00
parent af6cee0bff
commit eb774e11fa
7 changed files with 26 additions and 10 deletions

View file

@ -16,9 +16,15 @@ namespace SteamController.Profiles.Predefined
}
}
public override bool Visible
{
get => Settings.Default.EnableDS4Support && base.Visible;
set => base.Visible = value;
}
public override bool Selected(Context context)
{
return context.Enabled && context.DS4.Valid && context.KeyboardMouseValid && !context.State.SteamUsesSteamInput;
return Settings.Default.EnableDS4Support && context.Enabled && context.DS4.Valid && context.KeyboardMouseValid && !context.State.SteamUsesSteamInput;
}
internal override ProfilesSettings.BackPanelSettings BackPanelSettings