diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-27 00:58:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-27 00:58:04 +0100 |
commit | fb0fe3b8c37e9705ed18cb798eda8e144151b1da (patch) | |
tree | 7a34f5ff43d2cd100705dd9b0d65a142ccab1878 /src/core/hle/service/hid/controllers/npad.h | |
parent | Merge pull request #5810 from ogniK5377/stereo-vision (diff) | |
parent | Stub Set/Get/Reset SixaxisSensorFusionParameters (diff) | |
download | yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.tar yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.tar.gz yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.tar.bz2 yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.tar.lz yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.tar.xz yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.tar.zst yuzu-fb0fe3b8c37e9705ed18cb798eda8e144151b1da.zip |
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index bc85ca4df..bfd06372a 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -202,6 +202,9 @@ public: GyroscopeZeroDriftMode GetGyroscopeZeroDriftMode() const; bool IsSixAxisSensorAtRest() const; void SetSixAxisEnabled(bool six_axis_status); + void SetSixAxisFusionParameters(const DeviceHandle& handle, f32 parameter1, f32 parameter2); + std::pair<f32, f32> GetSixAxisFusionParameters(const DeviceHandle& handle); + void ResetSixAxisFusionParameters(const DeviceHandle& handle); LedPattern GetLedPattern(u32 npad_id); bool IsUnintendedHomeButtonInputProtectionEnabled(u32 npad_id) const; void SetUnintendedHomeButtonInputProtectionEnabled(bool is_protection_enabled, u32 npad_id); @@ -458,6 +461,8 @@ private: std::array<bool, 10> unintended_home_button_input_protection{}; GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard}; bool sixaxis_sensors_enabled{true}; + f32 sixaxis_fusion_parameter1{}; + f32 sixaxis_fusion_parameter2{}; bool sixaxis_at_rest{true}; std::array<ControllerPad, 10> npad_pad_states{}; bool is_in_lr_assignment_mode{false}; |