Remove unneeded this. from Ryujinx project

This commit is contained in:
Alex Barney 2018-10-27 19:07:10 -05:00
commit fcd757ed05
3 changed files with 13 additions and 13 deletions

View file

@ -40,8 +40,8 @@ namespace Ryujinx
DisplayDevice.Default, 3, 3, DisplayDevice.Default, 3, 3,
GraphicsContextFlags.ForwardCompatible) GraphicsContextFlags.ForwardCompatible)
{ {
this._device = device; _device = device;
this._renderer = renderer; _renderer = renderer;
Location = new Point( Location = new Point(
(DisplayDevice.Default.Width / 2) - (Width / 2), (DisplayDevice.Default.Width / 2) - (Width / 2),
@ -140,7 +140,7 @@ namespace Ryujinx
//Keyboard Input //Keyboard Input
if (_keyboard.HasValue) if (_keyboard.HasValue)
{ {
KeyboardState keyboard = this._keyboard.Value; KeyboardState keyboard = _keyboard.Value;
currentButton = Config.JoyConKeyboard.GetButtons(keyboard); 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. //OpenTK always captures mouse events, even if out of focus, so check if window is focused.
if (Focused && _mouse?.LeftButton == ButtonState.Pressed) if (Focused && _mouse?.LeftButton == ButtonState.Pressed)
{ {
MouseState mouse = this._mouse.Value; MouseState mouse = _mouse.Value;
int scrnWidth = Width; int scrnWidth = Width;
int scrnHeight = Height; int scrnHeight = Height;

View file

@ -76,17 +76,17 @@ namespace Ryujinx.UI.Input
JoyConControllerLeft left, JoyConControllerLeft left,
JoyConControllerRight right) JoyConControllerRight right)
{ {
this.Enabled = enabled; Enabled = enabled;
this.Index = index; Index = index;
this.Deadzone = deadzone; Deadzone = deadzone;
this.TriggerThreshold = triggerThreshold; TriggerThreshold = triggerThreshold;
this.Left = left; Left = left;
this.Right = right; Right = right;
//Unmapped controllers are problematic, skip them //Unmapped controllers are problematic, skip them
if (GamePad.GetName(index) == "Unmapped Controller") if (GamePad.GetName(index) == "Unmapped Controller")
{ {
this.Enabled = false; Enabled = false;
} }
} }

View file

@ -44,8 +44,8 @@ namespace Ryujinx.UI.Input
JoyConKeyboardLeft left, JoyConKeyboardLeft left,
JoyConKeyboardRight right) JoyConKeyboardRight right)
{ {
this.Left = left; Left = left;
this.Right = right; Right = right;
} }
public HidControllerButtons GetButtons(KeyboardState keyboard) public HidControllerButtons GetButtons(KeyboardState keyboard)