summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid/controllers/npad.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-05-22 00:03:08 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2022-05-27 17:21:10 +0200
commitc889a5805e72dc34527cc99456d0c6727266ef39 (patch)
tree5e915235c6b54ebf7713ccf700a71cd481302685 /src/core/hle/service/hid/controllers/npad.h
parentservice: hid: Add error handling to sixaxis functions (diff)
downloadyuzu-c889a5805e72dc34527cc99456d0c6727266ef39.tar
yuzu-c889a5805e72dc34527cc99456d0c6727266ef39.tar.gz
yuzu-c889a5805e72dc34527cc99456d0c6727266ef39.tar.bz2
yuzu-c889a5805e72dc34527cc99456d0c6727266ef39.tar.lz
yuzu-c889a5805e72dc34527cc99456d0c6727266ef39.tar.xz
yuzu-c889a5805e72dc34527cc99456d0c6727266ef39.tar.zst
yuzu-c889a5805e72dc34527cc99456d0c6727266ef39.zip
Diffstat (limited to 'src/core/hle/service/hid/controllers/npad.h')
-rw-r--r--src/core/hle/service/hid/controllers/npad.h5
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 e6125ffcc..951f46425 100644
--- a/src/core/hle/service/hid/controllers/npad.h
+++ b/src/core/hle/service/hid/controllers/npad.h
@@ -151,6 +151,10 @@ public:
bool& is_at_rest) const;
ResultCode IsFirmwareUpdateAvailableForSixAxisSensor(
const Core::HID::SixAxisSensorHandle& sixaxis_handle, bool& is_firmware_available) const;
+ ResultCode EnableSixAxisSensorUnalteredPassthrough(
+ const Core::HID::SixAxisSensorHandle& sixaxis_handle, bool is_enabled);
+ ResultCode IsSixAxisSensorUnalteredPassthroughEnabled(
+ const Core::HID::SixAxisSensorHandle& sixaxis_handle, bool& is_enabled) const;
ResultCode SetSixAxisEnabled(const Core::HID::SixAxisSensorHandle& sixaxis_handle,
bool sixaxis_status);
ResultCode IsSixAxisSensorFusionEnabled(const Core::HID::SixAxisSensorHandle& sixaxis_handle,
@@ -468,6 +472,7 @@ private:
struct SixaxisParameters {
bool is_fusion_enabled{true};
+ bool unaltered_passtrough{false};
Core::HID::SixAxisSensorFusionParameters fusion{};
GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard};
};