Skip to content

Commit 9962ec5

Browse files
committed
Add mouse_wheel_h
1 parent 774581d commit 9962ec5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config/cornetto.keymap

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
#sensor-binding-cells = <0>;
2020
bindings = <&mwh SCROLL_UP>, <&mwh SCROLL_DOWN>;
2121
};
22+
23+
mouse_wheel_h: mouse_wheel_h {
24+
compatible = "zmk,behavior-sensor-rotate";
25+
label = "MOUSE_WHEEL";
26+
#sensor-binding-cells = <0>;
27+
bindings = <&mwh SCROLL_LEFT>, <&mwh SCROLL_RIGHT>;
28+
};
2229
};
2330

2431
keymap {
@@ -67,7 +74,7 @@
6774
&none &none &none &none &none &none &none &none &none
6875
>;
6976

70-
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &rot_mwh SCROLL_RIGHT SCROLL_LEFT>;
77+
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &mouse_wheel_h>;
7178

7279
label = "admin";
7380
};

0 commit comments

Comments
 (0)