diff --git a/assets/Locales/Root.json b/assets/Locales/Root.json index dd6cab6f7..7917fe417 100644 --- a/assets/Locales/Root.json +++ b/assets/Locales/Root.json @@ -592,7 +592,7 @@ "pl_PL": "", "pt_BR": "", "ru_RU": "", - "sv_SE": "", + "sv_SE": "Starta om emulering", "th_TH": "", "tr_TR": "", "uk_UA": "", @@ -9442,7 +9442,7 @@ "pl_PL": "", "pt_BR": "", "ru_RU": "", - "sv_SE": "", + "sv_SE": "Spara", "th_TH": "", "tr_TR": "", "uk_UA": "", diff --git a/src/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs b/src/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs index 990b2e288..5acee3bb7 100644 --- a/src/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs +++ b/src/Ryujinx.HLE/HOS/Services/Hid/HidDevices/NpadDevices.cs @@ -584,8 +584,13 @@ namespace Ryujinx.HLE.HOS.Services.Hid public bool isAtRest(int playerNumber) { - ref NpadInternalState currentNpad = ref _device.Hid.SharedMemory.Npads[playerNumber].InternalState; + + if (currentNpad.StyleSet == NpadStyleTag.None) + { + return true; // it will always be at rest because it cannot move. + } + ref SixAxisSensorState storage = ref GetSixAxisSensorLifo(ref currentNpad, false).GetCurrentEntryRef(); float acceleration = Math.Abs(storage.Acceleration.X)