diff options
author | german77 <juangerman-13@hotmail.com> | 2023-01-29 01:19:15 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-02-01 19:42:05 +0100 |
commit | 75e81885b0bd38ece84a94b2d323b05d788f8741 (patch) | |
tree | c0ed8431e0a29906b41f5a6f74d9f2ddd449e99b /src/core/hid/emulated_controller.h | |
parent | Merge pull request #9707 from german77/clang15 (diff) | |
download | yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.tar yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.tar.gz yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.tar.bz2 yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.tar.lz yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.tar.xz yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.tar.zst yuzu-75e81885b0bd38ece84a94b2d323b05d788f8741.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hid/emulated_controller.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 3ac77b2b5..b02bf35c4 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -411,6 +411,9 @@ public: */ void DeleteCallback(int key); + /// Swaps the state of the turbo buttons + void TurboButtonUpdate(); + private: /// creates input devices from params void LoadDevices(); @@ -511,6 +514,8 @@ private: */ void TriggerOnChange(ControllerTriggerType type, bool is_service_update); + NpadButton GetTurboButtonMask() const; + const NpadIdType npad_id_type; NpadStyleIndex npad_type{NpadStyleIndex::None}; NpadStyleIndex original_npad_type{NpadStyleIndex::None}; @@ -520,6 +525,7 @@ private: bool system_buttons_enabled{true}; f32 motion_sensitivity{0.01f}; bool force_update_motion{false}; + u32 turbo_button_state{0}; // Temporary values to avoid doing changes while the controller is in configuring mode NpadStyleIndex tmp_npad_type{NpadStyleIndex::None}; |