forked from kofal.net/zmk
feat(behaviors): Add Tap-Dance behavior
This commit is contained in:
2
app/tests/tap-dance/4a-single/events.patterns
Normal file
2
app/tests/tap-dance/4a-single/events.patterns
Normal file
@@ -0,0 +1,2 @@
|
||||
s/.*hid_listener_keycode/kp/p
|
||||
s/.*on_tap_dance_binding/td_binding/p
|
||||
5
app/tests/tap-dance/4a-single/keycode_events.snapshot
Normal file
5
app/tests/tap-dance/4a-single/keycode_events.snapshot
Normal file
@@ -0,0 +1,5 @@
|
||||
td_binding_pressed: 1 created new tap dance
|
||||
td_binding_pressed: 1 tap dance pressed
|
||||
kp_pressed: usage_page 0x07 keycode 0x16 implicit_mods 0x00 explicit_mods 0x00
|
||||
td_binding_released: 1 tap dance keybind released
|
||||
kp_released: usage_page 0x07 keycode 0x16 implicit_mods 0x00 explicit_mods 0x00
|
||||
11
app/tests/tap-dance/4a-single/native_posix.keymap
Normal file
11
app/tests/tap-dance/4a-single/native_posix.keymap
Normal file
@@ -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,1,10)
|
||||
ZMK_MOCK_RELEASE(0,1,10)
|
||||
>;
|
||||
};
|
||||
Reference in New Issue
Block a user