forked from kofal.net/zmk
initial implementation for modifiers
https://github.com/zmkfirmware/zmk/issues/86
This commit is contained in:
committed by
Pete Johanson
parent
a9e729b427
commit
4f258efbf1
@@ -9,20 +9,8 @@
|
||||
|
||||
default_layer {
|
||||
bindings = <
|
||||
&kp B &mo 1
|
||||
&kp D &kp G>;
|
||||
};
|
||||
|
||||
lower_layer {
|
||||
bindings = <
|
||||
&cp M_NEXT &trans
|
||||
&kp L &kp J>;
|
||||
};
|
||||
|
||||
raise_layer {
|
||||
bindings = <
|
||||
&kp W &kp U
|
||||
&kp X &kp M>;
|
||||
&kp B &none
|
||||
&cp M_NEXT &none>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
pressed: usage_page 0x0c keycode 0xb5
|
||||
released: usage_page 0x0c keycode 0xb5
|
||||
pressed: usage_page 0x0c keycode 0xb5 mods 0x00
|
||||
pressed: usage_page 0x0c keycode 0xb5 mods 0x00
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "../behavior_keymap.dtsi"
|
||||
|
||||
&kscan {
|
||||
events = <ZMK_MOCK_PRESS(0,1,10) ZMK_MOCK_PRESS(0,0,10) ZMK_MOCK_RELEASE(0,0,10) ZMK_MOCK_RELEASE(0,1,10)>;
|
||||
events = <ZMK_MOCK_PRESS(1,0,10) ZMK_MOCK_PRESS(1,0,10)>;
|
||||
};
|
||||
@@ -1,2 +1,2 @@
|
||||
pressed: usage_page 0x0c keycode 0xb5
|
||||
released: usage_page 0x0c keycode 0xb5
|
||||
pressed: usage_page 0x07 keycode 0x05 mods 0x00
|
||||
released: usage_page 0x07 keycode 0x05 mods 0x00
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#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_PRESS(0,0,10) ZMK_MOCK_RELEASE(0,0,10) ZMK_MOCK_RELEASE(0,1,10)>;
|
||||
events = <ZMK_MOCK_PRESS(0,0,10) ZMK_MOCK_RELEASE(0,0,10)>;
|
||||
};
|
||||
Reference in New Issue
Block a user