mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
Update NpadController.cs (#3284)
This commit is contained in:
parent
9444b4a647
commit
13f5294aa3
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ namespace Ryujinx.Input.HLE
|
||||||
Vector3 gyroscope = _gamepad.GetMotionData(MotionInputId.Gyroscope);
|
Vector3 gyroscope = _gamepad.GetMotionData(MotionInputId.Gyroscope);
|
||||||
|
|
||||||
accelerometer = new Vector3(accelerometer.X, -accelerometer.Z, accelerometer.Y);
|
accelerometer = new Vector3(accelerometer.X, -accelerometer.Z, accelerometer.Y);
|
||||||
gyroscope = new Vector3(gyroscope.X, gyroscope.Z, gyroscope.Y);
|
gyroscope = new Vector3(gyroscope.X, -gyroscope.Z, gyroscope.Y);
|
||||||
|
|
||||||
_leftMotionInput.Update(accelerometer, gyroscope, (ulong)PerformanceCounter.ElapsedNanoseconds / 1000, controllerConfig.Motion.Sensitivity, (float)controllerConfig.Motion.GyroDeadzone);
|
_leftMotionInput.Update(accelerometer, gyroscope, (ulong)PerformanceCounter.ElapsedNanoseconds / 1000, controllerConfig.Motion.Sensitivity, (float)controllerConfig.Motion.GyroDeadzone);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue