Skip to content

Commit eddb2b9

Browse files
authored
Update cool642tb-mini.keymap
1 parent b9298f6 commit eddb2b9

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

config/cool642tb-mini.keymap

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@
2727
};
2828
};
2929

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>
38+
39+
tap-ms = <65>;
40+
};
41+
3042
keymap {
3143
compatible = "zmk,keymap";
3244

@@ -38,7 +50,7 @@
3850
&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
3951
>;
4052

41-
sensor-bindings = <&inc_dec_kp PG_UP PAGE_DOWN>, <&inc_dec_kp 0 0>;
53+
sensor-bindings = <&scroll_move_y>;
4254
};
4355

4456
FUNCTION {

0 commit comments

Comments
 (0)