diff options
author | bunnei <bunneidev@gmail.com> | 2023-02-01 21:08:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 21:08:34 +0100 |
commit | 92c5ab33b7d7ff818ace82bc8dabbf4f0291f226 (patch) | |
tree | d082352ddac1ea9d1b6320cb99ef7994595b5292 /src/core/hid/emulated_controller.h | |
parent | Merge pull request #9711 from zhaobot/tx-update-20230201062139 (diff) | |
parent | yuzu: config: Draw turbo buttons with a different color (diff) | |
download | yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.gz yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.bz2 yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.lz yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.xz yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.tar.zst yuzu-92c5ab33b7d7ff818ace82bc8dabbf4f0291f226.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}; |