diff options
author | wwylele <wwylele@gmail.com> | 2017-08-20 07:37:48 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-08-20 07:37:48 +0200 |
commit | 54c0c8adee90d374e954e742d6d03279ef2e7ed7 (patch) | |
tree | 5629edabe63a4006a163dc3bba93f72f95bb787e /src | |
parent | motion_emu: no need to include thread in header (diff) | |
download | yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.tar yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.tar.gz yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.tar.bz2 yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.tar.lz yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.tar.xz yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.tar.zst yuzu-54c0c8adee90d374e954e742d6d03279ef2e7ed7.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/hid/hid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index a13b72e88..31f34a7ae 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -203,7 +203,7 @@ static void UpdateAccelerometerCallback(u64 userdata, int cycles_late) { Math::Vec3<float> accel; std::tie(accel, std::ignore) = motion_device->GetStatus(); accel *= accelerometer_coef; - // TODO(wwylele): do a time stretch as it in UpdateGyroscopeCallback + // TODO(wwylele): do a time stretch like the one in UpdateGyroscopeCallback // The time stretch formula should be like // stretched_vector = (raw_vector - gravity) * stretch_ratio + gravity @@ -246,7 +246,7 @@ static void UpdateGyroscopeCallback(u64 userdata, int cycles_late) { Math::Vec3<float> gyro; std::tie(std::ignore, gyro) = motion_device->GetStatus(); - float stretch = Core::System::GetInstance().perf_stats.GetLastFrameTimeScale(); + double stretch = Core::System::GetInstance().perf_stats.GetLastFrameTimeScale(); gyro *= gyroscope_coef * stretch; gyroscope_entry.x = static_cast<s16>(gyro.x); gyroscope_entry.y = static_cast<s16>(gyro.y); |