diff --git a/Ryujinx/Ui/GLScreen.cs b/Ryujinx/Ui/GLScreen.cs index 08335dc0d3..4ab7efd12b 100644 --- a/Ryujinx/Ui/GLScreen.cs +++ b/Ryujinx/Ui/GLScreen.cs @@ -40,8 +40,8 @@ namespace Ryujinx DisplayDevice.Default, 3, 3, GraphicsContextFlags.ForwardCompatible) { - this._device = device; - this._renderer = renderer; + _device = device; + _renderer = renderer; Location = new Point( (DisplayDevice.Default.Width / 2) - (Width / 2), @@ -140,7 +140,7 @@ namespace Ryujinx //Keyboard Input if (_keyboard.HasValue) { - KeyboardState keyboard = this._keyboard.Value; + KeyboardState keyboard = _keyboard.Value; currentButton = Config.JoyConKeyboard.GetButtons(keyboard); @@ -181,7 +181,7 @@ namespace Ryujinx //OpenTK always captures mouse events, even if out of focus, so check if window is focused. if (Focused && _mouse?.LeftButton == ButtonState.Pressed) { - MouseState mouse = this._mouse.Value; + MouseState mouse = _mouse.Value; int scrnWidth = Width; int scrnHeight = Height; diff --git a/Ryujinx/Ui/JoyConController.cs b/Ryujinx/Ui/JoyConController.cs index faeac9d91c..28b631b235 100644 --- a/Ryujinx/Ui/JoyConController.cs +++ b/Ryujinx/Ui/JoyConController.cs @@ -76,17 +76,17 @@ namespace Ryujinx.UI.Input JoyConControllerLeft left, JoyConControllerRight right) { - this.Enabled = enabled; - this.Index = index; - this.Deadzone = deadzone; - this.TriggerThreshold = triggerThreshold; - this.Left = left; - this.Right = right; + Enabled = enabled; + Index = index; + Deadzone = deadzone; + TriggerThreshold = triggerThreshold; + Left = left; + Right = right; //Unmapped controllers are problematic, skip them if (GamePad.GetName(index) == "Unmapped Controller") { - this.Enabled = false; + Enabled = false; } } diff --git a/Ryujinx/Ui/JoyConKeyboard.cs b/Ryujinx/Ui/JoyConKeyboard.cs index 65def55429..fd399fe8d1 100644 --- a/Ryujinx/Ui/JoyConKeyboard.cs +++ b/Ryujinx/Ui/JoyConKeyboard.cs @@ -44,8 +44,8 @@ namespace Ryujinx.UI.Input JoyConKeyboardLeft left, JoyConKeyboardRight right) { - this.Left = left; - this.Right = right; + Left = left; + Right = right; } public HidControllerButtons GetButtons(KeyboardState keyboard)