aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/Configuration/Hid/InputConfig.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Common/Configuration/Hid/InputConfig.cs')
-rw-r--r--Ryujinx.Common/Configuration/Hid/InputConfig.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/Ryujinx.Common/Configuration/Hid/InputConfig.cs b/Ryujinx.Common/Configuration/Hid/InputConfig.cs
index d204eba4..3364e35f 100644
--- a/Ryujinx.Common/Configuration/Hid/InputConfig.cs
+++ b/Ryujinx.Common/Configuration/Hid/InputConfig.cs
@@ -1,6 +1,9 @@
-namespace Ryujinx.Common.Configuration.Hid
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+
+namespace Ryujinx.Common.Configuration.Hid
{
- public class InputConfig
+ public class InputConfig : INotifyPropertyChanged
{
/// <summary>
/// The current version of the input file format
@@ -25,5 +28,12 @@
/// Player's Index for the controller
/// </summary>
public PlayerIndex PlayerIndex { get; set; }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
}
-}
+} \ No newline at end of file