mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-13 09:48:47 +00:00
Add initial mouse keys support
- Use ZMK mkp behavior for mouse buttons
This commit is contained in:
parent
53f09e88f3
commit
d344543404
@ -7,6 +7,7 @@
|
||||
#include <dt-bindings/zmk/rgb.h>
|
||||
#include <dt-bindings/zmk/outputs.h>
|
||||
#include <dt-bindings/zmk/ext_power.h>
|
||||
#include <dt-bindings/zmk/mouse.h>
|
||||
|
||||
#include "miryoku.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
|
||||
|
||||
@ -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.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user