Remove unneeded this. from Ryujinx project
This commit is contained in:
parent
4f2a92e2e7
commit
fcd757ed05
3 changed files with 13 additions and 13 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue