Skip to content

Commit

Permalink
Add mouse key support
Browse files Browse the repository at this point in the history
  • Loading branch information
Promytheos committed Dec 18, 2024
1 parent 36c0fcf commit 0a93e1a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions boards/shields/vortex_corne/vortex_corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/pointing.h>

#define DEFAULT 0
#define GAMING 1
#define NUMBER 2
#define FUNCTION 3
#define MOUSE 4

&mt {
flavor = "tap-preferred";
Expand Down Expand Up @@ -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 = <MOUSE>;
};
};
};

Expand Down Expand Up @@ -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
>;
};
};
};
1 change: 1 addition & 0 deletions boards/shields/vortex_corne/vortex_corne_center.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion boards/shields/vortex_corne/vortex_corne_left.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions boards/shields/vortex_corne/vortex_corne_right.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0a93e1a

Please sign in to comment.