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