From a3710c951ec2ed73645f95b27c192b661bd0225d Mon Sep 17 00:00:00 2001 From: "luke.swan" Date: Wed, 18 Dec 2024 12:29:43 +0200 Subject: [PATCH] Modifiers and scroll --- .../shields/vortex_corne/vortex_corne.keymap | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/boards/shields/vortex_corne/vortex_corne.keymap b/boards/shields/vortex_corne/vortex_corne.keymap index 3b697cf..34950e7 100644 --- a/boards/shields/vortex_corne/vortex_corne.keymap +++ b/boards/shields/vortex_corne/vortex_corne.keymap @@ -4,6 +4,8 @@ * SPDX-License-Identifier: MIT */ +#define ZMK_POINTING_DEFAULT_MOVE_VAL 1500 + #include #include #include @@ -33,6 +35,40 @@ mods = <(MOD_LSFT|MOD_RSFT)>; keep-mods = <(MOD_RSFT)>; }; + + &mmv { + compatible = "zmk,behavior-input-two-axis"; + x-input-code = ; + y-input-code = ; + time-to-max-speed-ms = <300>; + acceleration-exponent = <2>; + }; + + mv_scrl_left: move_scroll_left { + compatible = "zmk,behavior-mod-morph"; + #binding-cells = <0>; + bindings = <&mmv MOVE_LEFT>, <&msc SCRL_LEFT>; + mods = <(MOD_LSFT|MOD_LCTL|MOD_LALT|MOD_LGUI)>; + }; + + mv_scrl_down: move_scroll_down { + compatible = "zmk,behavior-mod-morph"; + #binding-cells = <0>; + bindings = <&mmv MOVE_DOWN>, <&msc SCRL_DOWN>; + mods = <(MOD_LSFT|MOD_RSFT)>; + }; + mv_scrl_up: move_scroll_up { + compatible = "zmk,behavior-mod-morph"; + #binding-cells = <0>; + bindings = <&mmv MOVE_UP>, <&msc SCRL_UP>; + mods = <(MOD_LSFT|MOD_RSFT)>; + }; + mv_scrl_right: move_scroll_right { + compatible = "zmk,behavior-mod-morph"; + #binding-cells = <0>; + bindings = <&mmv MOVE_RIGHT>, <&msc SCRL_RIGHT>; + mods = <(MOD_LSFT|MOD_RSFT)>; + }; }; }; @@ -110,7 +146,7 @@ mouse_layer { bindings = < &none &none &none &none &none &none &none &none &none &none &none &none - &none &none &none &none &none &none &mmv MOVE_LEFT &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_RIGHT &none &none + &none &kp LGUI &kp LALT &kp LSHFT &kp LCTRL &none &mv_scrl_left &mv_scrl_down &mv_scrl_up &mv_scrl_right &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &mkp RCLK &mkp LCLK &none &tog MOUSE >;