2020-12-11 14:24:44 -08:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
|
|
|
#include <behaviors.dtsi>
|
2023-09-14 23:43:47 -07:00
|
|
|
#include <dt-bindings/zmk/kscan_mock.h>
|
2020-12-11 14:24:44 -08:00
|
|
|
|
|
|
|
/ {
|
2023-04-22 21:25:56 -07:00
|
|
|
combos {
|
|
|
|
compatible = "zmk,combos";
|
|
|
|
combo_one {
|
|
|
|
timeout-ms = <30>;
|
|
|
|
key-positions = <0 1>;
|
|
|
|
bindings = <&kp C>;
|
|
|
|
};
|
|
|
|
};
|
2020-12-11 14:24:44 -08:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
2020-12-11 14:24:44 -08:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
default_layer {
|
|
|
|
bindings = <
|
|
|
|
&kp A &kp B
|
|
|
|
&none &none
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
2020-12-11 14:24:44 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
&kscan {
|
2023-04-22 21:25:56 -07:00
|
|
|
events = <
|
|
|
|
/* all different combinations of press and release order */
|
|
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,0,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,1,10)
|
2020-12-11 14:24:44 -08:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,0,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,1,10)
|
2020-12-11 14:24:44 -08:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,1,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,0,10)
|
2020-12-11 14:24:44 -08:00
|
|
|
|
2023-04-22 21:25:56 -07:00
|
|
|
ZMK_MOCK_PRESS(0,1,10)
|
|
|
|
ZMK_MOCK_PRESS(0,0,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,1,10)
|
|
|
|
ZMK_MOCK_RELEASE(0,0,10)
|
|
|
|
>;
|
2020-12-11 14:24:44 -08:00
|
|
|
};
|