From 0a93e1a5b5024370975a1c31466376a3e3c327ae Mon Sep 17 00:00:00 2001 From: "luke.swan" Date: Wed, 18 Dec 2024 11:36:19 +0200 Subject: [PATCH] Add mouse key support --- .../shields/vortex_corne/vortex_corne.keymap | 18 ++++++++++++++++++ .../vortex_corne/vortex_corne_center.conf | 1 + .../vortex_corne/vortex_corne_left.conf | 2 +- .../vortex_corne/vortex_corne_right.conf | 1 + 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/boards/shields/vortex_corne/vortex_corne.keymap b/boards/shields/vortex_corne/vortex_corne.keymap index 4690263..b7572df 100644 --- a/boards/shields/vortex_corne/vortex_corne.keymap +++ b/boards/shields/vortex_corne/vortex_corne.keymap @@ -8,11 +8,13 @@ #include #include #include +#include #define DEFAULT 0 #define GAMING 1 #define NUMBER 2 #define FUNCTION 3 +#define MOUSE 4 &mt { flavor = "tap-preferred"; @@ -55,6 +57,13 @@ key-positions = <16 19 38 39>; bindings = <&bootloader>; }; + + combo_midclick { + timeout-ms = <50>; + key-positions = <38 39>; + bindings = <&mkp MCLK>; + layers = ; + }; }; }; @@ -97,5 +106,14 @@ &none &none &none &none &none &out OUT_TOG >; }; + + 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 &none &none &none &none &none &none &none &none &none &none &none + &none &none &mkp RCLK &mkp LCLK &none &none + >; + }; }; }; diff --git a/boards/shields/vortex_corne/vortex_corne_center.conf b/boards/shields/vortex_corne/vortex_corne_center.conf index ecc0620..f3bc547 100644 --- a/boards/shields/vortex_corne/vortex_corne_center.conf +++ b/boards/shields/vortex_corne/vortex_corne_center.conf @@ -9,3 +9,4 @@ CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2 CONFIG_ZMK_DISPLAY=y CONFIG_ZMK_DISPLAY_STATUS_SCREEN_CUSTOM=y +CONFIG_ZMK_POINTING=y diff --git a/boards/shields/vortex_corne/vortex_corne_left.conf b/boards/shields/vortex_corne/vortex_corne_left.conf index 139c837..1b60eaf 100644 --- a/boards/shields/vortex_corne/vortex_corne_left.conf +++ b/boards/shields/vortex_corne/vortex_corne_left.conf @@ -7,4 +7,4 @@ CONFIG_ZMK_DISPLAY=y CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y CONFIG_ZMK_WIDGET_LAYER_STATUS=y CONFIG_ZMK_DISPLAY_STATUS_SCREEN_CUSTOM=y - +CONFIG_ZMK_POINTING=y diff --git a/boards/shields/vortex_corne/vortex_corne_right.conf b/boards/shields/vortex_corne/vortex_corne_right.conf index 47ad653..1b60eaf 100644 --- a/boards/shields/vortex_corne/vortex_corne_right.conf +++ b/boards/shields/vortex_corne/vortex_corne_right.conf @@ -7,3 +7,4 @@ CONFIG_ZMK_DISPLAY=y CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y CONFIG_ZMK_WIDGET_LAYER_STATUS=y CONFIG_ZMK_DISPLAY_STATUS_SCREEN_CUSTOM=y +CONFIG_ZMK_POINTING=y