Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing Mouse move behavior #241

Open
achtan opened this issue Jul 18, 2024 · 6 comments
Open

missing Mouse move behavior #241

achtan opened this issue Jul 18, 2024 · 6 comments

Comments

@achtan
Copy link

achtan commented Jul 18, 2024

Hi, I cloned this layout from Ben: https://github.com/achtan/zmk-config-from-ben
and there I can see the "Mouse move behavior"
Screenshot 2024-07-18 at 12 28 58

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?

@nickcoutsos
Copy link
Owner

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

@alehano
Copy link

alehano commented Dec 5, 2024

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

Please, help. How exactly should I update west.yml to be able to use mouse feature?

@nickcoutsos
Copy link
Owner

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 zmkfirmware/zmk#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

@fabricio-bastian
Copy link

fabricio-bastian commented Dec 15, 2024

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 :)

@nickcoutsos
Copy link
Owner

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...

@nickcoutsos
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants