Skip to content

Commit

Permalink
Increasing MOUSE movement
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebritto committed Feb 13, 2025
1 parent 7decf29 commit 30c3f40
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 16 deletions.
29 changes: 14 additions & 15 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@
require-prior-idle-ms = <200>;
layers = <MDM>;
};



// SYS combos to replace a dedicated SYS layer

Expand Down Expand Up @@ -299,34 +297,35 @@
<&macro_release>,
<&mo MACRO_PLACEHOLDER>;
};
initdrag: initiate_drag_for_mouse_click {

mnav: from_layer_to_nav_through_def { // Disables any toggled layer and goes to NAV on hold
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_tap &to DEF>,
<&macro_press &mkp LCLK>,
<&macro_tap &tog MDM>;
<&macro_press &lc NAV>,
<&macro_pause_for_release>,
<&macro_release &lc NAV>;
};

enddrag: finish_drag_for_mouse_click {
// Mouse dragging macros (see combos above)

initdrag: initiate_drag_for_mouse_click {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_tap &to DEF>,
<&macro_release &mkp LCLK>,
= <&macro_press &mkp LCLK>,
<&macro_tap &tog MDM>;
};
mnav: from_layer_to_nav_through_def { // Disables any toggled layer and goes to NAV on hold

enddrag: finish_drag_for_mouse_click {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&macro_tap &to DEF>,
<&macro_press &lc NAV>,
<&macro_pause_for_release>,
<&macro_release &lc NAV>;
= <&macro_release &mkp LCLK>,
<&macro_tap &tog MDM>;
};


};

Expand Down
17 changes: 16 additions & 1 deletion config/mouse.dtsi
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// This file was copied from urob's repo

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

#include <dt-bindings/zmk/pointing.h>
#include <input/processors.dtsi>

// Based on @caksoylar's config, defaults in comments
&mmv {
Expand All @@ -19,6 +20,20 @@
delay-ms = <0>; // 0
};

&mmv_input_listener {
precision {
layers = <NAV>;
input-processors = <&zip_xy_scaler 1 4>;
};
};

&msc_input_listener {
turbo {
layers = <NAV>;
input-processors = <&zip_scroll_scaler 3 1>;
};
};

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

0 comments on commit 30c3f40

Please sign in to comment.