aboutsummaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_controller.h
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2021-10-19 00:12:24 -0500
committerNarr the Reg <juangerman-13@hotmail.com>2021-11-24 20:30:24 -0600
commit601ac43495904f3f7666d79a800a8b4eda5a8461 (patch)
tree97e49cb22264ceb730ce51babbd3c2dc27d6b36f /src/core/hid/emulated_controller.h
parent4d308fd0b4fc8f14754c47811e751bf068b330b8 (diff)
core/hid: Only signal when needed
Diffstat (limited to 'src/core/hid/emulated_controller.h')
-rw-r--r--src/core/hid/emulated_controller.h6
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};