Skip to content

Commit

Permalink
Updated do match lastest urob "mouse.dtsi" file
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Jan 15, 2025
1 parent d10542f commit 3861d31
Showing 1 changed file with 46 additions and 10 deletions.
56 changes: 46 additions & 10 deletions config/mouse.dtsi
Original file line number Diff line number Diff line change
@@ -1,23 +1,59 @@
// This file was copied from urob's repo

#define ZMK_MOUSE_DEFAULT_MOVE_VAL 1500 // 600
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10
// Settings tuned for 3840 x 2160 display resolution
#define ZMK_POINTING_DEFAULT_MOVE_VAL 600 // 600
#define ZMK_POINTING_DEFAULT_SCRL_VAL 20 // 10

#include <dt-bindings/zmk/mouse.h>
#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
delay-ms = <0>; // 0
acceleration-exponent = <1>; // 1
time-to-max-speed-ms = <500>; // 300
delay-ms = <0>; // 0
};

&msc {
acceleration-exponent = <1>; // 0
time-to-max-speed-ms = <40>; // 300
delay-ms = <0>; // 0
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 = <FN>;
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 = <FN>;
input-processors = <&zip_scroll_scaler 1 2>;
};
};


// Add these lines to cradio.conf
// # Mouse config, requires PR #778
// CONFIG_ZMK_MOUSE=y
Expand Down

0 comments on commit 3861d31

Please sign in to comment.