InputConfig.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.ComponentModel;
  2. using System.Runtime.CompilerServices;
  3. namespace Ryujinx.Common.Configuration.Hid
  4. {
  5. public class InputConfig : INotifyPropertyChanged
  6. {
  7. /// <summary>
  8. /// The current version of the input file format
  9. /// </summary>
  10. public const int CurrentVersion = 1;
  11. public int Version { get; set; }
  12. public InputBackendType Backend { get; set; }
  13. /// <summary>
  14. /// Controller id
  15. /// </summary>
  16. public string Id { get; set; }
  17. /// <summary>
  18. /// Controller's Type
  19. /// </summary>
  20. public ControllerType ControllerType { get; set; }
  21. /// <summary>
  22. /// Player's Index for the controller
  23. /// </summary>
  24. public PlayerIndex PlayerIndex { get; set; }
  25. public event PropertyChangedEventHandler PropertyChanged;
  26. protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
  27. {
  28. PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
  29. }
  30. }
  31. }