diff options
| author | 2020-09-04 21:35:42 -0500 | |
|---|---|---|
| committer | 2020-09-04 21:48:13 -0500 | |
| commit | 6ee8eab670acfed494ade355d77a32c57f7c9585 (patch) | |
| tree | ca91a7ca7ac7861ae48c5456870eee425fc8c209 /src/core | |
| parent | Remove RealMotionDevice (diff) | |
| download | yuzu-6ee8eab670acfed494ade355d77a32c57f7c9585.tar.gz yuzu-6ee8eab670acfed494ade355d77a32c57f7c9585.tar.xz yuzu-6ee8eab670acfed494ade355d77a32c57f7c9585.zip | |
Add cemu hook changes related to PR #4609
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/hid/controllers/npad.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp index 2e06372a4..510fa3071 100644 --- a/src/core/hle/service/hid/controllers/npad.cpp +++ b/src/core/hle/service/hid/controllers/npad.cpp | |||
| @@ -397,8 +397,7 @@ void Controller_NPad::OnUpdate(const Core::Timing::CoreTiming& core_timing, u8* | |||
| 397 | std::tie(motion_devices[e].accel, motion_devices[e].gyro, | 397 | std::tie(motion_devices[e].accel, motion_devices[e].gyro, |
| 398 | motion_devices[e].rotation, motion_devices[e].orientation) = | 398 | motion_devices[e].rotation, motion_devices[e].orientation) = |
| 399 | device->GetStatus(); | 399 | device->GetStatus(); |
| 400 | sixaxis_at_rest = | 400 | sixaxis_at_rest = sixaxis_at_rest && motion_devices[e].gyro.Length2() < 0.0001f; |
| 401 | sixaxis_at_rest && motion_devices[e].gyro.Length2() < 0.00005f; | ||
| 402 | } | 401 | } |
| 403 | } | 402 | } |
| 404 | } | 403 | } |