diff options
author | SpicerXD <spicerxd.dev@gmail.com> | 2023-04-22 08:31:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 15:31:28 +0200 |
commit | e27f5522e20ce0d84532a01b36222fe425ccd9ce (patch) | |
tree | f4e28f020cfa7317117680075b31b024d2d83215 | |
parent | add2a9d15120185166adc6d2431ffee7d8a8b26b (diff) |
Removed MotionInput Calibration (#4705)1.1.725
Don't know why this is here.
It just seems to set the filter to an identity. Which then quickly returns to where its supposed to be anyways.
-rw-r--r-- | Ryujinx.Input/Motion/MotionInput.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Ryujinx.Input/Motion/MotionInput.cs b/Ryujinx.Input/Motion/MotionInput.cs index d92c3d7f..1923d9cb 100644 --- a/Ryujinx.Input/Motion/MotionInput.cs +++ b/Ryujinx.Input/Motion/MotionInput.cs @@ -12,7 +12,6 @@ namespace Ryujinx.Input public Vector3 Rotation { get; set; } private readonly MotionSensorFilter _filter; - private int _calibrationFrame = 0; public MotionInput() { @@ -29,26 +28,6 @@ namespace Ryujinx.Input { if (TimeStamp != 0) { - if (gyro.Length() <= 1f && accel.Length() >= 0.8f && accel.Z >= 0.8f) - { - _calibrationFrame++; - - if (_calibrationFrame >= 90) - { - gyro = Vector3.Zero; - - Rotation = Vector3.Zero; - - _filter.Reset(); - - _calibrationFrame = 0; - } - } - else - { - _calibrationFrame = 0; - } - Accelerometer = -accel; if (gyro.Length() < deadzone) |