forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR 2494: Fix other key releasing breaking combo
Squashed commit of the following: commit 1fdd5d6 Author: Sviatoslav Bulbakha <[email protected]> Date: Sun Sep 22 20:12:24 2024 +0400 Adjust failing tap tance test for the new combo behavior commit 3578717 Author: Sviatoslav Bulbakha <[email protected]> Date: Sun Sep 22 06:58:51 2024 +0400 Cleanup combo timer only when affected keys are released. commit c7b5653 Author: Sviatoslav Bulbakha <[email protected]> Date: Wed Jul 17 03:55:22 2024 +0400 Add failing test
- Loading branch information
Showing
5 changed files
with
95 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
s/.*hid_listener_keycode_//p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
pressed: usage_page 0x07 keycode 0x06 implicit_mods 0x00 explicit_mods 0x00 | ||
released: usage_page 0x07 keycode 0x06 implicit_mods 0x00 explicit_mods 0x00 | ||
pressed: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 | ||
released: usage_page 0x07 keycode 0x07 implicit_mods 0x00 explicit_mods 0x00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/kscan_mock.h> | ||
|
||
/ { | ||
combos { | ||
compatible = "zmk,combos"; | ||
|
||
combo_d { | ||
timeout-ms = <50>; | ||
key-positions = <0 1>; | ||
bindings = <&kp D>; | ||
}; | ||
|
||
// not actuated combo to test behavior | ||
combo_g { | ||
timeout-ms = <50>; | ||
key-positions = <2 3>; | ||
bindings = <&kp G>; | ||
}; | ||
}; | ||
|
||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
bindings = <&kp A &kp B &kp C &kp D>; | ||
}; | ||
}; | ||
}; | ||
|
||
&kscan { | ||
events = < | ||
ZMK_MOCK_PRESS(0,2,10) // C | ||
ZMK_MOCK_PRESS(0,0,10) // A | ||
ZMK_MOCK_RELEASE(0,2,10) // C | ||
ZMK_MOCK_PRESS(0,1,10) // B | ||
ZMK_MOCK_RELEASE(0,0,0) // A | ||
ZMK_MOCK_RELEASE(0,1,0) // B | ||
>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
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: 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: 2 tap dance keybind released | ||
kp_released: usage_page 0x07 keycode 0x1E 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 |