mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-08 00:43:04 +00:00
Changes in compliance with review
This commit is contained in:
parent
42c3bde419
commit
6a4cabba1e
4 changed files with 19 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
|||
using OpenTK.Input;
|
||||
using Ryujinx.HLE.Input;
|
||||
using Ryujinx.UI.Input;
|
||||
using Ryujinx.HLE.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
|
@ -59,58 +59,58 @@ namespace Ryujinx
|
|||
|
||||
private ButtonState GetGamePadButtonFromString(GamePadState GamePad, string Button) //Please make this prettier if you can.
|
||||
{
|
||||
ButtonState result = GamePad.Buttons.A;
|
||||
ButtonState Result = GamePad.Buttons.A;
|
||||
|
||||
switch (Button)
|
||||
{
|
||||
case "A":
|
||||
result = GamePad.Buttons.A;
|
||||
Result = GamePad.Buttons.A;
|
||||
break;
|
||||
case "B":
|
||||
result = GamePad.Buttons.B;
|
||||
Result = GamePad.Buttons.B;
|
||||
break;
|
||||
case "X":
|
||||
result = GamePad.Buttons.X;
|
||||
Result = GamePad.Buttons.X;
|
||||
break;
|
||||
case "Y":
|
||||
result = GamePad.Buttons.Y;
|
||||
Result = GamePad.Buttons.Y;
|
||||
break;
|
||||
case "LStick":
|
||||
result = GamePad.Buttons.LeftStick;
|
||||
Result = GamePad.Buttons.LeftStick;
|
||||
break;
|
||||
case "RStick":
|
||||
result = GamePad.Buttons.RightStick;
|
||||
Result = GamePad.Buttons.RightStick;
|
||||
break;
|
||||
case "LShoulder":
|
||||
result = GamePad.Buttons.LeftShoulder;
|
||||
Result = GamePad.Buttons.LeftShoulder;
|
||||
break;
|
||||
case "RShoulder":
|
||||
result = GamePad.Buttons.RightShoulder;
|
||||
Result = GamePad.Buttons.RightShoulder;
|
||||
break;
|
||||
case "DPadUp":
|
||||
result = GamePad.DPad.Up;
|
||||
Result = GamePad.DPad.Up;
|
||||
break;
|
||||
case "DPadDown":
|
||||
result = GamePad.DPad.Down;
|
||||
Result = GamePad.DPad.Down;
|
||||
break;
|
||||
case "DPadLeft":
|
||||
result = GamePad.DPad.Left;
|
||||
Result = GamePad.DPad.Left;
|
||||
break;
|
||||
case "DPadRight":
|
||||
result = GamePad.DPad.Right;
|
||||
Result = GamePad.DPad.Right;
|
||||
break;
|
||||
case "Start":
|
||||
result = GamePad.Buttons.Start;
|
||||
Result = GamePad.Buttons.Start;
|
||||
break;
|
||||
case "Back":
|
||||
result = GamePad.Buttons.Back;
|
||||
Result = GamePad.Buttons.Back;
|
||||
break;
|
||||
default:
|
||||
Console.Error.WriteLine("Invalid Button Mapping \"" + Button + "\"! Defaulting to Button A.");
|
||||
break;
|
||||
}
|
||||
|
||||
return result;
|
||||
return Result;
|
||||
}
|
||||
|
||||
private float GetGamePadTriggerFromString(GamePadState GamePad, string Trigger)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Ryujinx.HLE.Input
|
||||
namespace Ryujinx.UI.Input
|
||||
{
|
||||
public struct JoyConControllerLeft
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Ryujinx.HLE.Input
|
||||
namespace Ryujinx.UI.Input
|
||||
{
|
||||
public struct JoyConKeyboardLeft
|
||||
{
|
Loading…
Reference in a new issue