From 30c3f40d56492fe5418dac58e24af86c430585c2 Mon Sep 17 00:00:00 2001 From: ldebritto Date: Thu, 13 Feb 2025 17:00:15 -0300 Subject: [PATCH] Increasing MOUSE movement --- config/cradio.keymap | 29 ++++++++++++++--------------- config/mouse.dtsi | 17 ++++++++++++++++- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/config/cradio.keymap b/config/cradio.keymap index 9430186..9850a64 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -159,8 +159,6 @@ require-prior-idle-ms = <200>; layers = ; }; - - // SYS combos to replace a dedicated SYS layer @@ -299,34 +297,35 @@ <¯o_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 = <¯o_tap &to DEF>, - <¯o_press &mkp LCLK>, - <¯o_tap &tog MDM>; + <¯o_press &lc NAV>, + <¯o_pause_for_release>, + <¯o_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 - = <¯o_tap &to DEF>, - <¯o_release &mkp LCLK>, + = <¯o_press &mkp LCLK>, <¯o_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 - = <¯o_tap &to DEF>, - <¯o_press &lc NAV>, - <¯o_pause_for_release>, - <¯o_release &lc NAV>; + = <¯o_release &mkp LCLK>, + <¯o_tap &tog MDM>; }; + }; diff --git a/config/mouse.dtsi b/config/mouse.dtsi index 1ed260f..f270d58 100644 --- a/config/mouse.dtsi +++ b/config/mouse.dtsi @@ -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 +#include // Based on @caksoylar's config, defaults in comments &mmv { @@ -19,6 +20,20 @@ delay-ms = <0>; // 0 }; +&mmv_input_listener { + precision { + layers =