From 80184076065344076134c5fdf64bad8ce4b86573 Mon Sep 17 00:00:00 2001 From: Dryice Liu Date: Sun, 29 Sep 2024 04:10:12 +0800 Subject: [PATCH] try again with my mouse keymap --- config/corne.keymap | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/config/corne.keymap b/config/corne.keymap index 742c571..720d7f8 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -7,12 +7,14 @@ #include #include #include +#include #define DEFAULT 0 #define SYMBOLS 1 #define NAVIGATION 2 #define BLUETOOTH 3 #define FUNCTIONS 4 +#define MOUSE 5 // Macro to apply momentary-layer-on-hold/toggle-layer-on-tap to a specific layer #define MO_TOG(layer) &mo_tog layer layer @@ -121,5 +123,41 @@ >; }; +// This is for https://github.com/zmkfirmware/zmk/pull/2027 + mouse_layer { +// ----------------------------------------------------------------------------------------- +// | | | | | | | | MClick | LClick | RClick | | | | +// | | none | none | none | none| LClick | | LClick | MOVE_DOWN | MOVE_UP | MOVE_LEFT | MOVE_RIGHT | none | +// | | none | none | none | none | none | | none | SCRL_DOWN | SCRL_UP | SCRL_LEFT | SCRL_RIGHT | | +// | | | | | | | | + bindings = < + &trans &trans &trans &trans &trans &trans &mkp MCLK &mkp LCLK &mkp RCLK &none &none &none + &trans &trans &trans &trans &trans &mkp LCLK &mkp LCLK &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_LEFT &mmv MOVE_RIGHT &none + &trans &none &none &none &none &none &none &msc SCRL_DOWN &msc SCRL_UP &msc SCRL_LEFT &msc SCRL_RIGHT &trans + &trans &trans &trans &trans &trans &trans + >; + }; + + + +// // This is for https://github.com/zmkfirmware/zmk/pull/778 +// mouse_layer { +// // ----------------------------------------------------------------------------------------- +// // | | | | | | | | MClick | LClick | RClick | | | | +// // | | none | none | none | none| LClick | | LClick | MOVE_DOWN | MOVE_UP | MOVE_LEFT | MOVE_RIGHT | none | +// // | | none | none | none | none | none | | none | SCRL_DOWN | SCRL_UP | SCRL_LEFT | SCRL_RIGHT | | +// // | | | | | | | | +// bindings = < +// &trans &trans &trans &trans &trans &trans &mkp MCLK &mkp LCLK &mkp RCLK &none &none &none +// &trans &trans &trans &trans &trans &mkp LCLK &mkp LCLK &mmv MOVE_DOWN &mmv MOVE_UP &mmv MOVE_LEFT &mmv MOVE_RIGHT &none +// &trans &none &none &none &none &none &none &mwh SCROLL_DOWN &mwh SCROLL_UP &mwh SCROLL_LEFT &mwh SCROLL_RIGHT &trans +// &trans &trans &trans &trans &trans &trans +// >; +// }; + + + +// these 2 are global + }; };