Squash merge mouse into main

This commit is contained in:
Daniel Fichtinger 2025-01-05 18:22:49 -05:00
parent 083bf20ae0
commit 46602e28ae
5 changed files with 157 additions and 68 deletions

View file

@ -1,22 +1,56 @@
// Settings tuned for 3840 x 2160 display resolution
#define ZMK_POINTING_DEFAULT_MOVE_VAL 1500 // 600
#define ZMK_POINTING_DEFAULT_SCRL_VAL 120 // 10
#define ZMK_POINTING_DEFAULT_MOVE_VAL 600 // 600
#define ZMK_POINTING_DEFAULT_SCRL_VAL 20 // 10
#include <dt-bindings/zmk/pointing.h>
#include <input/processors.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
// Config from @caksoylar, defaults in comments
// Based on @caksoylar's config, defaults in comments
&mmv {
acceleration-exponent = <1>; // 1
time-to-max-speed-ms = <500>; // 300
time-to-max-speed-ms = <300>; // 300
delay-ms = <0>; // 0
};
&msc {
acceleration-exponent = <1>; // 0
time-to-max-speed-ms = <800>; // 300
acceleration-exponent = <0>; // 0
time-to-max-speed-ms = <300>; // 300
delay-ms = <0>; // 0
};
&mmv_input_listener {
warp {
layers = <NAV>;
input-processors = <&zip_xy_scaler 3 1>;
};
precision {
layers = <SYM>;
input-processors = <&zip_xy_scaler 1 2>;
};
};
/ {
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;
};
};
&msc_input_listener {
warp {
layers = <NAV>;
input-processors = <&zip_scroll_scaler 2 1>;
};
precision {
layers = <SYM>;
input-processors = <&zip_scroll_scaler 1 2>;
};
};
#define U_MS_U &mmv MOVE_UP
#define U_MS_D &mmv MOVE_DOWN
#define U_MS_L &mmv MOVE_LEFT