summaryrefslogtreecommitdiff
path: root/app/tests/hold-tap/balanced/2-dn-timer-up
diff options
context:
space:
mode:
authorKevin <chenkevinh11@gmail.com>2020-09-02 17:37:39 -0700
committerKevin <chenkevinh11@gmail.com>2020-09-02 17:37:39 -0700
commit5b493ef334c32a7074e29b68f779f81cbdf6596c (patch)
tree193a6ebf7e0820a3fbb54f2f42487991b8321144 /app/tests/hold-tap/balanced/2-dn-timer-up
parent068626d1a74d3883a8ccb2cd514a217098e99420 (diff)
parentd53a8e36ca17f988b7b1df754478baf2e87597e6 (diff)
Merge branch 'main' into docs/encoders
Sync with upstream
Diffstat (limited to 'app/tests/hold-tap/balanced/2-dn-timer-up')
-rw-r--r--app/tests/hold-tap/balanced/2-dn-timer-up/events.patterns4
-rw-r--r--app/tests/hold-tap/balanced/2-dn-timer-up/keycode_events.snapshot5
-rw-r--r--app/tests/hold-tap/balanced/2-dn-timer-up/native_posix.keymap11
3 files changed, 20 insertions, 0 deletions
diff --git a/app/tests/hold-tap/balanced/2-dn-timer-up/events.patterns b/app/tests/hold-tap/balanced/2-dn-timer-up/events.patterns
new file mode 100644
index 0000000..fdf2b15
--- /dev/null
+++ b/app/tests/hold-tap/balanced/2-dn-timer-up/events.patterns
@@ -0,0 +1,4 @@
+s/.*hid_listener_keycode/kp/p
+s/.*mo_keymap_binding/mo/p
+s/.*on_hold_tap_binding/ht_binding/p
+s/.*decide_hold_tap/ht_decide/p \ No newline at end of file
diff --git a/app/tests/hold-tap/balanced/2-dn-timer-up/keycode_events.snapshot b/app/tests/hold-tap/balanced/2-dn-timer-up/keycode_events.snapshot
new file mode 100644
index 0000000..ddda1ae
--- /dev/null
+++ b/app/tests/hold-tap/balanced/2-dn-timer-up/keycode_events.snapshot
@@ -0,0 +1,5 @@
+ht_binding_pressed: 0 new undecided hold_tap
+ht_decide: 0 decided hold (balanced event 3)
+kp_pressed: usage_page 0x07 keycode 0xe1
+kp_released: usage_page 0x07 keycode 0xe1
+ht_binding_released: 0 cleaning up hold-tap
diff --git a/app/tests/hold-tap/balanced/2-dn-timer-up/native_posix.keymap b/app/tests/hold-tap/balanced/2-dn-timer-up/native_posix.keymap
new file mode 100644
index 0000000..aa93b86
--- /dev/null
+++ b/app/tests/hold-tap/balanced/2-dn-timer-up/native_posix.keymap
@@ -0,0 +1,11 @@
+#include <dt-bindings/zmk/keys.h>
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/kscan-mock.h>
+#include "../behavior_keymap.dtsi"
+
+&kscan {
+ events = <
+ ZMK_MOCK_PRESS(0,0,500)
+ ZMK_MOCK_RELEASE(0,0,10)
+ >;
+}; \ No newline at end of file