Skip to content

Commit e0f5847

Browse files
committed
update scroll
1 parent 5b125bb commit e0f5847

File tree

3 files changed

+15
-25
lines changed

3 files changed

+15
-25
lines changed

boards/arm/eyelash_sofle/eyelash_sofle_left_defconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ CONFIG_ZMK_HID_REPORT_TYPE_NKRO=n
7777
#EC11 enable
7878
CONFIG_EC11=y
7979
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
80-
CONFIG_ZMK_MOUSE=y
80+
CONFIG_ZMK_POINTING=y

config/eyelash_sofle.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
3636
CONFIG_ZMK_EXT_POWER=y
3737

3838
# MOUSE
39-
CONFIG_ZMK_MOUSE=y
39+
CONFIG_ZMK_POINTING=y
4040

4141
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
4242
CONFIG_ZMK_HID_REPORT_TYPE_NKRO=n

config/eyelash_sofle.keymap

+13-23
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,31 @@
11
#define ZMK_POINTING_DEFAULT_MOVE_VAL 1200 // 600
2-
#define ZMK_POINTING_DEFAULT_SCRL_VAL 35 // 10
2+
#define ZMK_POINTING_DEFAULT_SCRL_VAL 25 // 10
3+
34
#include <input/processors.dtsi>
5+
#include <zephyr/dt-bindings/input/input-event-codes.h>
46
#include <behaviors.dtsi>
57
#include <dt-bindings/zmk/bt.h>
8+
#include <dt-bindings/zmk/ext_power.h>
69
#include <dt-bindings/zmk/keys.h>
7-
#include <dt-bindings/zmk/outputs.h>
10+
#include <dt-bindings/zmk/pointing.h>
11+
#include <dt-bindings/zmk/pointing.h>
812
#include <dt-bindings/zmk/pointing.h>
913
#include <dt-bindings/zmk/rgb.h>
10-
#include <zephyr/dt-bindings/input/input-event-codes.h>
1114

12-
/ {
13-
zip_scroll_scaler: zip_scroll_scaler {
14-
compatible = "zmk,input-processor-scaler";
15-
#input-processor-cells = <2>;
16-
type = <INPUT_EV_REL>;
17-
codes = <INPUT_REL_WHEEL INPUT_REL_HWHEEL>;
18-
track-remainders;
19-
};
20-
};
15+
&mmv_input_listener { input-processors = <&zip_xy_scaler 2 1>; };
2116

22-
&mmv_input_listener {
23-
input-processors = <&zip_xy_scaler 2 1>;
24-
};
25-
26-
&msc_input_listener {
27-
input-processors = <&zip_scroll_scaler 2 1>;
28-
};
17+
&msc_input_listener { input-processors = <&zip_scroll_scaler 2 1>; };
2918

3019
&msc {
31-
acceleration-exponent = <0>; // 0
32-
time-to-max-speed-ms = <0>; // 300
20+
acceleration-exponent = <1>; // 0
21+
time-to-max-speed-ms = <100>; // 300
3322
delay-ms = <0>; // 0
3423
};
3524

3625
&mmv {
37-
time-to-max-speed-ms = <400>;
26+
time-to-max-speed-ms = <500>;
3827
acceleration-exponent = <1>;
28+
trigger-period-ms = <16>;
3929
};
4030

4131

@@ -45,7 +35,7 @@
4535
compatible = "zmk,behavior-sensor-rotate";
4636
#sensor-binding-cells = <0>;
4737
bindings = <&msc SCRL_DOWN>, <&msc SCRL_UP>;
48-
tap-ms = <30>;
38+
tap-ms = <100>;
4939
};
5040

5141
keymap {

0 commit comments

Comments
 (0)