/// <summary> /// Gets the applied utilities for the specified game /// </summary> /// <returns>The applied utilities</returns> public override async Task <IList <string> > GetAppliedUtilitiesAsync() { // Create the output var output = new List <string>(); if (await Rayman2ConfigViewModel.GetIsWidescreenHackAppliedAsync() == true) { output.Add(Resources.Config_WidescreenSupport); } var dinput = Rayman2ConfigViewModel.GetCurrentDinput(); if (dinput == Rayman2ConfigViewModel.R2Dinput.Controller) { output.Add(Resources.Config_UseController); } if (dinput == Rayman2ConfigViewModel.R2Dinput.Mapping) { output.Add(Resources.Config_ButtonMapping); } // Get other utilities output.AddRange(await base.GetAppliedUtilitiesAsync()); return(output); }
/// <summary> /// Default constructor /// </summary> /// <param name="actionName">The name of the action the key represents</param> /// <param name="originalKey">The original key for the action</param> /// <param name="parent">The parent view model</param> public R2KeyItemViewModel(string actionName, Key originalKey, Rayman2ConfigViewModel parent) { ActionName = actionName; OriginalKey = _newKey = originalKey; Parent = parent; ResetCommand = new RelayCommand(Reset); }