diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-10 02:05:20 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-10 02:07:50 +0100 |
commit | 5e9fa5def5cf5ae3f00cc354a0b1363123dc6930 (patch) | |
tree | 90a707a21b66803010bbe707c36563e1ff583559 /src/core/hle/service/hid/controllers/npad.h | |
parent | service: hid: Return error if arguments of SetSupportedNpadIdType is invalid (diff) | |
download | yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.tar yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.tar.gz yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.tar.bz2 yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.tar.lz yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.tar.xz yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.tar.zst yuzu-5e9fa5def5cf5ae3f00cc354a0b1363123dc6930.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 02cc00920..a5998c453 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -52,13 +52,6 @@ public: // When the controller is requesting a motion update for the shared memory void OnMotionUpdate(const Core::Timing::CoreTiming& core_timing) override; - // This is nn::hid::GyroscopeZeroDriftMode - enum class GyroscopeZeroDriftMode : u32 { - Loose = 0, - Standard = 1, - Tight = 2, - }; - // This is nn::hid::NpadJoyHoldType enum class NpadJoyHoldType : u64 { Vertical = 0, @@ -146,9 +139,9 @@ public: Result DisconnectNpad(Core::HID::NpadIdType npad_id); Result SetGyroscopeZeroDriftMode(const Core::HID::SixAxisSensorHandle& sixaxis_handle, - GyroscopeZeroDriftMode drift_mode); + Core::HID::GyroscopeZeroDriftMode drift_mode); Result GetGyroscopeZeroDriftMode(const Core::HID::SixAxisSensorHandle& sixaxis_handle, - GyroscopeZeroDriftMode& drift_mode) const; + Core::HID::GyroscopeZeroDriftMode& drift_mode) const; Result IsSixAxisSensorAtRest(const Core::HID::SixAxisSensorHandle& sixaxis_handle, bool& is_at_rest) const; Result IsFirmwareUpdateAvailableForSixAxisSensor( @@ -489,7 +482,8 @@ private: Core::HID::SixAxisSensorFusionParameters fusion{}; Core::HID::SixAxisSensorCalibrationParameter calibration{}; Core::HID::SixAxisSensorIcInformation ic_information{}; - GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard}; + Core::HID::GyroscopeZeroDriftMode gyroscope_zero_drift_mode{ + Core::HID::GyroscopeZeroDriftMode::Standard}; }; struct NpadControllerData { |