diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-06-21 21:48:02 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-06-21 22:25:41 +0200 |
commit | 0235915baaca8c0928a54fae1df60595e451e223 (patch) | |
tree | dd2920e0bcc447c21ff03fcd622d0e850729836e /src/core/hle/service/hid/controllers/npad.h | |
parent | Merge pull request #4120 from lioncash/arb (diff) | |
download | yuzu-0235915baaca8c0928a54fae1df60595e451e223.tar yuzu-0235915baaca8c0928a54fae1df60595e451e223.tar.gz yuzu-0235915baaca8c0928a54fae1df60595e451e223.tar.bz2 yuzu-0235915baaca8c0928a54fae1df60595e451e223.tar.lz yuzu-0235915baaca8c0928a54fae1df60595e451e223.tar.xz yuzu-0235915baaca8c0928a54fae1df60595e451e223.tar.zst yuzu-0235915baaca8c0928a54fae1df60595e451e223.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/hid/controllers/npad.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.h b/src/core/hle/service/hid/controllers/npad.h index 931f03430..5d4c58a43 100644 --- a/src/core/hle/service/hid/controllers/npad.h +++ b/src/core/hle/service/hid/controllers/npad.h @@ -58,6 +58,12 @@ public: }; static_assert(sizeof(Vibration) == 0x10, "Vibration is an invalid size"); + enum class GyroscopeZeroDriftMode : u32 { + Loose = 0, + Standard = 1, + Tight = 2, + }; + enum class NpadHoldType : u64 { Vertical = 0, Horizontal = 1, @@ -117,6 +123,8 @@ public: void ConnectNPad(u32 npad_id); void DisconnectNPad(u32 npad_id); + void SetGyroscopeZeroDriftMode(GyroscopeZeroDriftMode drift_mode); + GyroscopeZeroDriftMode GetGyroscopeZeroDriftMode() const; LedPattern GetLedPattern(u32 npad_id); void SetVibrationEnabled(bool can_vibrate); bool IsVibrationEnabled() const; @@ -324,8 +332,8 @@ private: std::array<Kernel::EventPair, 10> styleset_changed_events; Vibration last_processed_vibration{}; std::array<ControllerHolder, 10> connected_controllers{}; + GyroscopeZeroDriftMode gyroscope_zero_drift_mode{GyroscopeZeroDriftMode::Standard}; bool can_controllers_vibrate{true}; - std::array<ControllerPad, 10> npad_pad_states{}; bool is_in_lr_assignment_mode{false}; Core::System& system; |