diff options
| author | 2021-11-02 22:50:30 -0600 | |
|---|---|---|
| committer | 2021-11-24 20:30:27 -0600 | |
| commit | 157e0b85fdd805e02d234dccf1ce578e3159adee (patch) | |
| tree | 3916ae9628d53df0cfff3667ecbfb4dbd94f8e0b /src/core/hid/emulated_controller.h | |
| parent | core/hid: Fully emulate motion from button (diff) | |
| download | yuzu-157e0b85fdd805e02d234dccf1ce578e3159adee.tar.gz yuzu-157e0b85fdd805e02d234dccf1ce578e3159adee.tar.xz yuzu-157e0b85fdd805e02d234dccf1ce578e3159adee.zip | |
core/hid: Prevent Emulated controller from flapping with multiple inputs devices
Diffstat (limited to 'src/core/hid/emulated_controller.h')
| -rw-r--r-- | src/core/hid/emulated_controller.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 2f7afff56..9a8bdf14d 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h | |||
| @@ -313,21 +313,21 @@ private: | |||
| 313 | * @param callback: A CallbackStatus containing the button status | 313 | * @param callback: A CallbackStatus containing the button status |
| 314 | * @param index: Button ID of the to be updated | 314 | * @param index: Button ID of the to be updated |
| 315 | */ | 315 | */ |
| 316 | void SetButton(Common::Input::CallbackStatus callback, std::size_t index); | 316 | void SetButton(Common::Input::CallbackStatus callback, std::size_t index, Common::UUID uuid); |
| 317 | 317 | ||
| 318 | /** | 318 | /** |
| 319 | * Updates the analog stick status of the controller | 319 | * Updates the analog stick status of the controller |
| 320 | * @param callback: A CallbackStatus containing the analog stick status | 320 | * @param callback: A CallbackStatus containing the analog stick status |
| 321 | * @param index: stick ID of the to be updated | 321 | * @param index: stick ID of the to be updated |
| 322 | */ | 322 | */ |
| 323 | void SetStick(Common::Input::CallbackStatus callback, std::size_t index); | 323 | void SetStick(Common::Input::CallbackStatus callback, std::size_t index, Common::UUID uuid); |
| 324 | 324 | ||
| 325 | /** | 325 | /** |
| 326 | * Updates the trigger status of the controller | 326 | * Updates the trigger status of the controller |
| 327 | * @param callback: A CallbackStatus containing the trigger status | 327 | * @param callback: A CallbackStatus containing the trigger status |
| 328 | * @param index: trigger ID of the to be updated | 328 | * @param index: trigger ID of the to be updated |
| 329 | */ | 329 | */ |
| 330 | void SetTrigger(Common::Input::CallbackStatus callback, std::size_t index); | 330 | void SetTrigger(Common::Input::CallbackStatus callback, std::size_t index, Common::UUID uuid); |
| 331 | 331 | ||
| 332 | /** | 332 | /** |
| 333 | * Updates the motion status of the controller | 333 | * Updates the motion status of the controller |