diff options
author | bunnei <bunneidev@gmail.com> | 2022-04-22 06:25:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 06:25:47 +0200 |
commit | a1ee9799bcd6cbf7c68733136fe7acbebf33a71a (patch) | |
tree | 710d6e433431b875f59ba137eccac6f488493ca5 /src/core/hid/hid_types.h | |
parent | Merge pull request #8192 from german77/screenshot (diff) | |
parent | service: hid: Improve accuracy of sixaxis functions (diff) | |
download | yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.tar yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.tar.gz yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.tar.bz2 yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.tar.lz yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.tar.xz yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.tar.zst yuzu-a1ee9799bcd6cbf7c68733136fe7acbebf33a71a.zip |
Diffstat (limited to 'src/core/hid/hid_types.h')
-rw-r--r-- | src/core/hid/hid_types.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hid/hid_types.h b/src/core/hid/hid_types.h index 778b328b9..422a9af33 100644 --- a/src/core/hid/hid_types.h +++ b/src/core/hid/hid_types.h @@ -491,9 +491,10 @@ struct SixAxisSensorHandle { }; static_assert(sizeof(SixAxisSensorHandle) == 4, "SixAxisSensorHandle is an invalid size"); +// These parameters seem related to how much gyro/accelerometer is used struct SixAxisSensorFusionParameters { - f32 parameter1; - f32 parameter2; + f32 parameter1{0.03f}; // Range 0.0 to 1.0, default 0.03 + f32 parameter2{0.4f}; // Default 0.4 }; static_assert(sizeof(SixAxisSensorFusionParameters) == 8, "SixAxisSensorFusionParameters is an invalid size"); |