feat: use mouse scrolling

This commit is contained in:
daniel
2025-05-25 22:15:03 +02:00
parent 0e799aa5bb
commit 36724ffdf9
2 changed files with 11 additions and 1 deletions

View File

@@ -26,4 +26,6 @@ CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
# enforce windows to show keyboard battery
CONFIG_BT_GATT_ENFORCE_SUBSCRIPTION=y
CONFIG_ZMK_POINTING=y
CONFIG_ZMK_EXT_POWER=y

View File

@@ -3,6 +3,7 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/pointing.h>
#define COLEMAK 0
#define QWERTY 1
@@ -34,6 +35,13 @@
tapping-term-ms = <200>;
bindings = <&kp>, <&kp>;
};
inc_dec_msc: sensor_rotation_scroll {
compatible = "zmk,behavior-sensor-rotate-var";
#sensor-binding-cells = <2>;
bindings = <&msc>, <&msc>;
tap-ms = <200>;
};
};
macros {
@@ -122,7 +130,7 @@
&kp LGUI &kp LALT &lthp SYM ESC &kp SPACE &kp ENTER &lt NAV ESC &kp RALT &kp RGUI
>;
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_kp PG_DN PG_UP>;
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP &inc_dec_msc SCRL_DOWN SCRL_UP>;
};
qwerty_layer {