Skip to content

Commit ed046f5

Browse files
authored
Update cool642tb-mini.keymap
1 parent 9499edb commit ed046f5

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

config/cool642tb-mini.keymap

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
#include <dt-bindings/zmk/keys.h>
44
#include <dt-bindings/zmk/pointing.h>
55

6+
67
#define MOUSE 4
78
#define SCROLL 5
89
#define NUM 6
10+
#define ZMK_POINTING_DEFAULT_SCRL_VAL 80
911

1012
&mt {
1113
flavor = "balanced";
@@ -27,17 +29,15 @@
2729
};
2830
};
2931

30-
// エンコーダー:マウススクロール(MOVE_Y)
31-
32-
scroll_move_y: sensor_rotate_msc_for_move_y {
33-
compatible = "zmk,behavior-sensor-rotate";
34-
#sensor-binding-cells = <0>;
35-
bindings = <&msc MOVE_Y(20)>, <&msc MOVE_Y(-20)>;
36-
37-
// tap-ms下限メモ Yの値で可変: Y(15) <81>, Y(20) <65>, Y(25) <49>
32+
behaviors {
33+
encoder_msc_down_up: encoder_msc_down_up {
34+
compatible = "zmk,behavior-sensor-rotate";
35+
label = "ENCODER_MSC_DOWN_UP";
36+
#sensor-binding-cells = <0>;
37+
bindings = <&msc SCRL_DOWN>, <&msc SCRL_UP>;
38+
tap-ms = <20>;
39+
};
3840

39-
tap-ms = <65>;
40-
};
4141

4242
keymap {
4343
compatible = "zmk,keymap";
@@ -50,7 +50,7 @@
5050
&kp TAB &kp C_MUTE &kp LEFT_GUI &kp LEFT_ALT &lt 2 SPACE &mt LSHIFT DELETE &mt RSHFT BACKSPACE &lt 1 ENTER &kp F4
5151
>;
5252

53-
sensor-bindings = <&scroll_move_y>;
53+
sensor-bindings = <&encoder_msc_down_up>;
5454
};
5555

5656
FUNCTION {

0 commit comments

Comments
 (0)