diff options
| author | 2021-12-29 22:15:08 -0600 | |
|---|---|---|
| committer | 2021-12-29 22:51:53 -0600 | |
| commit | 9ee5c4ec5629c185d29dd41468047004acef2e29 (patch) | |
| tree | 997dd6a3916e3bd84cf5a109421d18f72d678fc4 /src/core/hid/emulated_controller.h | |
| parent | Merge pull request #7620 from bunnei/kernel-thread-x18 (diff) | |
| download | yuzu-9ee5c4ec5629c185d29dd41468047004acef2e29.tar.gz yuzu-9ee5c4ec5629c185d29dd41468047004acef2e29.tar.xz yuzu-9ee5c4ec5629c185d29dd41468047004acef2e29.zip | |
core/hid: Fix controller type validation
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -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: | |||
| 167 | */ | 167 | */ |
| 168 | void SetSupportedNpadStyleTag(NpadStyleTag supported_styles); | 168 | void SetSupportedNpadStyleTag(NpadStyleTag supported_styles); |
| 169 | 169 | ||
| 170 | /// Sets the connected status to true | 170 | /** |
| 171 | void Connect(); | 171 | * Sets the connected status to true |
| 172 | * @param use_temporary_value If true tmp_npad_type will be used | ||
| 173 | */ | ||
| 174 | void Connect(bool use_temporary_value = false); | ||
| 172 | 175 | ||
| 173 | /// Sets the connected status to false | 176 | /// Sets the connected status to false |
| 174 | void Disconnect(); | 177 | void Disconnect(); |
| @@ -319,9 +322,10 @@ private: | |||
| 319 | 322 | ||
| 320 | /** | 323 | /** |
| 321 | * Checks the current controller type against the supported_style_tag | 324 | * Checks the current controller type against the supported_style_tag |
| 325 | * @param use_temporary_value If true tmp_npad_type will be used | ||
| 322 | * @return true if the controller is supported | 326 | * @return true if the controller is supported |
| 323 | */ | 327 | */ |
| 324 | bool IsControllerSupported() const; | 328 | bool IsControllerSupported(bool use_temporary_value = false) const; |
| 325 | 329 | ||
| 326 | /** | 330 | /** |
| 327 | * Updates the button status of the controller | 331 | * Updates the button status of the controller |