missing Mouse move behavior
Hi, I cloned this layout from Ben: https://github.com/achtan/zmk-config-from-ben
and there I can see the "Mouse move behavior"
how every In my own repo: https://github.com/achtan/zmk-corne-5-col I don't see that option... How can I setup the Mouse move behavior?
Mouse movement stuff is (I think) not yet merged into ZMK main so you'll need to enable it as an experimental feature (don't forget to update your westl.yml accordingly). See https://github.com/nickcoutsos/keymap-editor/wiki/Experimental-ZMK-Features#mouse-emulation
Mouse movement stuff is (I think) not yet merged into ZMK main so you'll need to enable it as an experimental feature (don't forget to update your
westl.ymlaccordingly). See https://github.com/nickcoutsos/keymap-editor/wiki/Experimental-ZMK-Features#mouse-emulation
Please, help. How exactly should I update west.yml to be able to use mouse feature?
Your config/west.yml file should look something like:
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
projects:
- name: zmk
remote: zmkfirmware
revision: main
import: app/west.yml
self:
path: config
If you wanted to use the implementation in https://github.com/zmkfirmware/zmk/pull/778 for example, you might change it like so:
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
+ - name: krikun98
+ - url-base: https://github.com/krikun98
projects:
- name: zmk
- remote: zmkfirmware
- revision: main
+ remote: zmkfirmware
+ revision: mouse-pr
import: app/west.yml
self:
path: config
Hi there! The mouse functionality is not merged to the main branch and there is official support https://zmk.dev/docs/keymaps/behaviors/mouse-emulation
It seems like the keymap output is including the incorrect file:
#include <dt-bindings/zmk/mouse.h>
instead of:
#include <dt-bindings/zmk/pointing.h>
Mouse emulation also needs to be enabled via config:
CONFIG_ZMK_POINTING=y
Just a heads-up, since I just tried to update my config and then suddenly the mouse functionality stopped working :)
Hmm, I'll try to look at this soon. The config aspect is annoying because I don't want to search out and parse those files...
Ok, I've refreshed behaviors from the current ZMK source. Now when selecting a mouse behavior it'll show a little warning to ensure it's enabled in your build configuration. It's untested as I'm not around a ZMK keyboard but it should include the correct header and... I think the binding parameters are unchanged.