File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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";
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";
5050&kp TAB &kp C_MUTE &kp LEFT_GUI &kp LEFT_ALT < 2 SPACE &mt LSHIFT DELETE &mt RSHFT BACKSPACE < 1 ENTER &kp F4
5151 >;
5252
53- sensor-bindings = <&scroll_move_y >;
53+ sensor-bindings = <&encoder_msc_down_up >;
5454 };
5555
5656 FUNCTION {
You can’t perform that action at this time.
0 commit comments