summaryrefslogtreecommitdiff
path: root/app/tests/wpm/2-multiple_keypress/native_posix.keymap
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/tests/wpm/2-multiple_keypress/native_posix.keymap
parentc0cab57c2d4d1fd4a7db4e7d6edda7bdc6549619 (diff)
feat: Add WPM calculator and display widget
Diffstat (limited to 'app/tests/wpm/2-multiple_keypress/native_posix.keymap')
-rw-r--r--app/tests/wpm/2-multiple_keypress/native_posix.keymap15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/tests/wpm/2-multiple_keypress/native_posix.keymap b/app/tests/wpm/2-multiple_keypress/native_posix.keymap
new file mode 100644
index 0000000..f4ba2df
--- /dev/null
+++ b/app/tests/wpm/2-multiple_keypress/native_posix.keymap
@@ -0,0 +1,15 @@
+#include "../behavior_keymap.dtsi"
+
+&kscan {
+ events = <
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
+ //1st WPM worker call - 12wpm - 1 key press in 1 second
+ ZMK_MOCK_PRESS(0,0,1000)
+ ZMK_MOCK_RELEASE(0,0,10)
+ // 2nd WPM worker call - 12wpm - 2 key press in 2 second
+ // note there is no event for this as WPM hasn't changed
+ // 3rd WPM worker call - 8wpm - 2 key press in 3 seconds
+ ZMK_MOCK_PRESS(0,0,2000)
+ >;
+}; \ No newline at end of file