diff options
author | german77 <juangerman-13@hotmail.com> | 2021-10-19 07:12:24 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-25 03:30:24 +0100 |
commit | 601ac43495904f3f7666d79a800a8b4eda5a8461 (patch) | |
tree | 97e49cb22264ceb730ce51babbd3c2dc27d6b36f /src/core/hid/emulated_controller.h | |
parent | hid: Fix controller connection/disconnection (diff) | |
download | yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.tar yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.tar.gz yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.tar.bz2 yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.tar.lz yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.tar.xz yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.tar.zst yuzu-601ac43495904f3f7666d79a800a8b4eda5a8461.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hid/emulated_controller.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hid/emulated_controller.h b/src/core/hid/emulated_controller.h index 6a6dc1892..3a0b20cf8 100644 --- a/src/core/hid/emulated_controller.h +++ b/src/core/hid/emulated_controller.h @@ -113,6 +113,7 @@ enum class ControllerTriggerType { struct ControllerUpdateCallback { std::function<void(ControllerTriggerType)> on_change; + bool is_service; }; class EmulatedController { @@ -325,9 +326,10 @@ private: /** * Triggers a callback that something has changed on the controller status - * @param Input type of the event to trigger + * @param type: Input type of the event to trigger + * @param is_service_update: indicates if this event should be sended to only services */ - void TriggerOnChange(ControllerTriggerType type); + void TriggerOnChange(ControllerTriggerType type, bool is_service_update); NpadIdType npad_id_type; NpadType npad_type{NpadType::None}; |