summaryrefslogtreecommitdiff
path: root/app/include/zmk/events/endpoint_selection_changed.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/include/zmk/events/endpoint_selection_changed.h')
-rw-r--r--app/include/zmk/events/endpoint_selection_changed.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/include/zmk/events/endpoint_selection_changed.h b/app/include/zmk/events/endpoint_selection_changed.h
new file mode 100644
index 0000000..38a6a8e
--- /dev/null
+++ b/app/include/zmk/events/endpoint_selection_changed.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2021 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#pragma once
+
+#include <zephyr.h>
+
+#include <zmk/endpoints_types.h>
+#include <zmk/event_manager.h>
+
+struct zmk_endpoint_selection_changed {
+ enum zmk_endpoint endpoint;
+};
+
+ZMK_EVENT_DECLARE(zmk_endpoint_selection_changed);