diff options
author | bunnei <bunneidev@gmail.com> | 2021-12-31 01:54:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-31 01:54:35 +0100 |
commit | 667a8ae163681f68d90010bc7dd05eb7398524d6 (patch) | |
tree | dea803db312fc0e36c5ed2c9000cacf3bd4df7c3 /src/core/hid/emulated_controller.h | |
parent | Merge pull request #7635 from bunnei/set-heap-size (diff) | |
parent | core/hid: Fix controller type validation (diff) | |
download | yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.tar yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.tar.gz yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.tar.bz2 yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.tar.lz yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.tar.xz yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.tar.zst yuzu-667a8ae163681f68d90010bc7dd05eb7398524d6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hid/emulated_controller.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index e42aafebc..d887eca87 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -167,8 +167,11 @@ public: */ void SetSupportedNpadStyleTag(NpadStyleTag supported_styles); - /// Sets the connected status to true - void Connect(); + /** + * Sets the connected status to true + * @param use_temporary_value If true tmp_npad_type will be used + */ + void Connect(bool use_temporary_value = false); /// Sets the connected status to false void Disconnect(); @@ -319,9 +322,10 @@ private: /** * Checks the current controller type against the supported_style_tag + * @param use_temporary_value If true tmp_npad_type will be used * @return true if the controller is supported */ - bool IsControllerSupported() const; + bool IsControllerSupported(bool use_temporary_value = false) const; /** * Updates the button status of the controller |