Browse Source
* When tracking the last keycode, also capture the currently held explicit modifiers to use when replaying the key later.xmkb
Peter Johanson
3 years ago
committed by
Pete Johanson
5 changed files with 32 additions and 1 deletions
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
s/.*hid_listener_keycode_//p |
||||
s/.*hid_implicit_modifiers_//p |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
pressed: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||
press: Modifiers set to 0x01 |
||||
pressed: usage_page 0x07 keycode 0x04 implicit_mods 0x00 explicit_mods 0x00 |
||||
press: Modifiers set to 0x01 |
||||
released: usage_page 0x07 keycode 0x04 implicit_mods 0x00 explicit_mods 0x00 |
||||
release: Modifiers set to 0x01 |
||||
released: usage_page 0x07 keycode 0xe0 implicit_mods 0x00 explicit_mods 0x00 |
||||
release: Modifiers set to 0x00 |
||||
pressed: usage_page 0x07 keycode 0x04 implicit_mods 0x01 explicit_mods 0x00 |
||||
press: Modifiers set to 0x01 |
||||
released: usage_page 0x07 keycode 0x04 implicit_mods 0x01 explicit_mods 0x00 |
||||
release: Modifiers set to 0x00 |
@ -0,0 +1,15 @@
@@ -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_PRESS(0,1,10) |
||||
ZMK_MOCK_RELEASE(0,1,10) |
||||
ZMK_MOCK_RELEASE(1,0,10) |
||||
ZMK_MOCK_PRESS(0,0,10) |
||||
ZMK_MOCK_RELEASE(0,0,10) |
||||
>; |
||||
}; |
Loading…
Reference in new issue