diff --git a/miryoku/miryoku.dtsi b/miryoku/miryoku.dtsi index 87d4ce3..b26bb68 100644 --- a/miryoku/miryoku.dtsi +++ b/miryoku/miryoku.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include #include "miryoku.h" diff --git a/miryoku/miryoku_mousekeys.h b/miryoku/miryoku_mousekeys.h index 79f621e..e8a77dd 100644 --- a/miryoku/miryoku_mousekeys.h +++ b/miryoku/miryoku_mousekeys.h @@ -3,9 +3,10 @@ #pragma once -#define U_BTN1 &u_macro_btn1 -#define U_BTN2 &u_macro_btn2 -#define U_BTN3 &u_macro_btn3 +#define U_BTN1 &mkp MB1 +#define U_BTN2 &mkp MB2 +#define U_BTN3 &mkp MB3 + #define U_MS_D &kp KP_N2 #define U_MS_L &kp KP_N4 #define U_MS_R &kp KP_N6 diff --git a/readme.org b/readme.org index 04b09d6..bd8eaec 100644 --- a/readme.org +++ b/readme.org @@ -475,10 +475,11 @@ On each hand, combo the primary and secondary thumb keys to emulate the tertiary *** Mouse Keys +[[https://zmk.dev/docs/behaviors/mouse-emulation][ZMK supports mouse buttons only]]. **** Mouse Keys on Host -The Mouse and Button layers use [[https://en.wikipedia.org/wiki/Mouse_keys][mouse keys on the host]]. Scroll is not supported. +Mouse movement requires [[https://en.wikipedia.org/wiki/Mouse_keys][enabling mouse keys on the host]]. Mouse scroll is not supported. - [[https://linuxreviews.org/HOWTO_use_the_numeric_keyboard_keys_as_mouse_in_XOrg][X11]] - [[https://support.apple.com/en-au/guide/mac-help/mh27469/mac][Mac]] @@ -487,7 +488,7 @@ The Mouse and Button layers use [[https://en.wikipedia.org/wiki/Mouse_keys][mous **** Mousekeys PR -Support for https://github.com/zmkfirmware/zmk/pull/778 is also included. +Mouse movement and scroll is supported with https://github.com/zmkfirmware/zmk/pull/778. As the PR branch is not being maintained, use https://github.com/urob/zmk/tree/mouse-3.2 instead.