summaryrefslogtreecommitdiff
path: root/app/include/zmk/events
diff options
context:
space:
mode:
authorAlly Parker <ally.parker@red-gate.com>2021-01-22 16:23:21 +0000
committerPete Johanson <peter@peterjohanson.com>2021-01-23 18:38:31 -0500
commita4aaa73f06939417a911c5213480efe78aa70fab (patch)
treeca38fa9f6dff26cdc8563f47008322370f2e448d /app/include/zmk/events
parentc0cab57c2d4d1fd4a7db4e7d6edda7bdc6549619 (diff)
feat: Add WPM calculator and display widget
Diffstat (limited to 'app/include/zmk/events')
-rw-r--r--app/include/zmk/events/wpm_state_changed.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/include/zmk/events/wpm_state_changed.h b/app/include/zmk/events/wpm_state_changed.h
new file mode 100644
index 0000000..3d1a369
--- /dev/null
+++ b/app/include/zmk/events/wpm_state_changed.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2020 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#pragma once
+
+#include <zephyr.h>
+#include <zmk/event_manager.h>
+#include <zmk/wpm.h>
+
+struct zmk_wpm_state_changed {
+ int state;
+};
+
+ZMK_EVENT_DECLARE(zmk_wpm_state_changed);