update scroll

This commit is contained in:
a741725193
2025-03-03 16:24:27 +08:00
parent 5b125bb340
commit e0f5847b6f
3 changed files with 15 additions and 25 deletions
@@ -77,4 +77,4 @@ CONFIG_ZMK_HID_REPORT_TYPE_NKRO=n
#EC11 enable
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_POINTING=y
+1 -1
View File
@@ -36,7 +36,7 @@ CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
CONFIG_ZMK_EXT_POWER=y
# MOUSE
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_POINTING=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_HID_REPORT_TYPE_NKRO=n
+13 -23
View File
@@ -1,41 +1,31 @@
#define ZMK_POINTING_DEFAULT_MOVE_VAL 1200 // 600
#define ZMK_POINTING_DEFAULT_SCRL_VAL 35 // 10
#define ZMK_POINTING_DEFAULT_SCRL_VAL 25 // 10
#include <input/processors.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/pointing.h>
#include <dt-bindings/zmk/pointing.h>
#include <dt-bindings/zmk/pointing.h>
#include <dt-bindings/zmk/rgb.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
zip_scroll_scaler: zip_scroll_scaler {
compatible = "zmk,input-processor-scaler";
#input-processor-cells = <2>;
type = <INPUT_EV_REL>;
codes = <INPUT_REL_WHEEL INPUT_REL_HWHEEL>;
track-remainders;
};
};
&mmv_input_listener { input-processors = <&zip_xy_scaler 2 1>; };
&mmv_input_listener {
input-processors = <&zip_xy_scaler 2 1>;
};
&msc_input_listener {
input-processors = <&zip_scroll_scaler 2 1>;
};
&msc_input_listener { input-processors = <&zip_scroll_scaler 2 1>; };
&msc {
acceleration-exponent = <0>; // 0
time-to-max-speed-ms = <0>; // 300
acceleration-exponent = <1>; // 0
time-to-max-speed-ms = <100>; // 300
delay-ms = <0>; // 0
};
&mmv {
time-to-max-speed-ms = <400>;
time-to-max-speed-ms = <500>;
acceleration-exponent = <1>;
trigger-period-ms = <16>;
};
@@ -45,7 +35,7 @@
compatible = "zmk,behavior-sensor-rotate";
#sensor-binding-cells = <0>;
bindings = <&msc SCRL_DOWN>, <&msc SCRL_UP>;
tap-ms = <30>;
tap-ms = <100>;
};
keymap {