|
1 | 1 | #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 | + |
3 | 4 | #include <input/processors.dtsi>
|
| 5 | +#include <zephyr/dt-bindings/input/input-event-codes.h> |
4 | 6 | #include <behaviors.dtsi>
|
5 | 7 | #include <dt-bindings/zmk/bt.h>
|
| 8 | +#include <dt-bindings/zmk/ext_power.h> |
6 | 9 | #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> |
8 | 12 | #include <dt-bindings/zmk/pointing.h>
|
9 | 13 | #include <dt-bindings/zmk/rgb.h>
|
10 |
| -#include <zephyr/dt-bindings/input/input-event-codes.h> |
11 | 14 |
|
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>; }; |
21 | 16 |
|
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>; }; |
29 | 18 |
|
30 | 19 | &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 |
33 | 22 | delay-ms = <0>; // 0
|
34 | 23 | };
|
35 | 24 |
|
36 | 25 | &mmv {
|
37 |
| - time-to-max-speed-ms = <400>; |
| 26 | + time-to-max-speed-ms = <500>; |
38 | 27 | acceleration-exponent = <1>;
|
| 28 | + trigger-period-ms = <16>; |
39 | 29 | };
|
40 | 30 |
|
41 | 31 |
|
|
45 | 35 | compatible = "zmk,behavior-sensor-rotate";
|
46 | 36 | #sensor-binding-cells = <0>;
|
47 | 37 | bindings = <&msc SCRL_DOWN>, <&msc SCRL_UP>;
|
48 |
| - tap-ms = <30>; |
| 38 | + tap-ms = <100>; |
49 | 39 | };
|
50 | 40 |
|
51 | 41 | keymap {
|
|
0 commit comments