multiple fixes, variable typo fixes, adherence to a certain style. Fixed initialization of the new function, defaults to 0

This commit is contained in:
Vova
2025-01-08 22:45:33 +10:00
parent 37b4dd2133
commit b6667a8352
22 changed files with 59 additions and 57 deletions

View File

@@ -284,7 +284,7 @@ namespace Ryujinx.Input.HLE
{
State = gamepad.GetMappedStateSnapshot();
if (gamepad.spetialExit())
if (gamepad.SpecialExit())
{
return true;
}

View File

@@ -202,7 +202,7 @@ namespace Ryujinx.Input.HLE
public bool Update(float aspectRatio = 1)
{
bool spetialExit = false;
bool specialExit = false;
lock (_lock)
{
@@ -227,7 +227,9 @@ namespace Ryujinx.Input.HLE
DriverConfigurationUpdate(ref controller, inputConfig);
controller.UpdateUserConfiguration(inputConfig);
spetialExit = controller.Update(); //hotkey press check
specialExit = controller.Update(); //hotkey press check
controller.UpdateRumble(_device.Hid.Npads.GetRumbleQueue(playerIndex));
inputState = controller.GetHLEInputState();
@@ -318,7 +320,7 @@ namespace Ryujinx.Input.HLE
_device.TamperMachine.UpdateInput(hleInputStates);
}
return spetialExit;
return specialExit;
}
internal InputConfig GetPlayerInputConfigByIndex(int index)

View File

@@ -83,7 +83,7 @@ namespace Ryujinx.Input
/// Gets the state if the minus and plus buttons were pressed on the gamepad.
/// </summary>
/// <returns>returns true if the buttons were pressed.</returns>
bool spetialExit();
bool SpecialExit();
/// <summary>
/// Get a snaphost of the state of the gamepad.