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

Mouse clicks #1

Closed
mmarchi123 opened this issue Jun 5, 2024 · 11 comments
Closed

Mouse clicks #1

mmarchi123 opened this issue Jun 5, 2024 · 11 comments

Comments

@mmarchi123
Copy link

Hello there,

I tried to include the mouse keys functionality, but I always get errors during compiling, is it possible to add and if so, how would you do it?

Thank you

@chase-hunter
Copy link
Owner

Hey.

What sort of errors are you getting? Would you be able to provide some screenshots?

Thanks,
Chase

@mmarchi123
Copy link
Author

I followed the documentation to add the configuration in the '.conf' and '.keymap' (#include <dt-bindings/zmk/mouse.h>), after the config added to .keymap the flow breaks.

image
image
image

@mmarchi123
Copy link
Author

Hey Chase,

Did you had a chance to take a look?

Thank you in advance

@mmarchi123
Copy link
Author

Just folliing up, I still could not manage to make it work

@chase-hunter
Copy link
Owner

Hey there. Apologies for the delays, have been out of loop for a bit here...

Upon initial glance of your provided screenshots, it looks like you may be missing "#include <behaviors/mouse_keys.dtsi>" in your .keymap file. Give this a try and see if it resolves some of your errors!

@mmarchi123
Copy link
Author

No worries man, take your time, I tried but still got error.
/__w/zmk-config-dance/zmk-config-dance/config/boards/shields/dance/dance.keymap:9:10: fatal error: behaviors/mouse_keys.dtsi: No such file or directory
9 | #include <behaviors/mouse_keys.dtsi>

Forgive my stupidity, I don't know what I'm doing wrong

@chase-hunter
Copy link
Owner

chase-hunter commented Oct 1, 2024

No problem at all! I took a look at your config and noticed you are only referencing my ZMK fork inside of your west.yml file, this is likely the issue. Unfortunately, my fork of ZMK (as well as the current ZMK master branch) does not include mouse emulation as of now (this is something I will fix in the near future).

To add mouse emulation, you will need to swap or add a module in west.yml to something that has mouse emulation. You could use the stable #2027 PR or the latest #2477 PR which both have mouse functionality. For more information on how to edit modules in the west.yml file, check here.

I have also created a new test firmware repo that is using the #2477 PR to enable mouse functionality without issue. This may be easier to fork and work off of, please feel free to take a look at the test firmware here. If you have any other questions or concerns, please be sure to let me know.

Thanks,
Chase

@mmarchi123
Copy link
Author

Thank you so much, I ended forking as you suggested. It is compiling now we my keymap.

@chase-hunter
Copy link
Owner

Great to hear, I am always happy to help. If you run into any other issues, let me know! With the new firmware, ensure you remove and reconnect the device from your machine so it will recognize the mouse input.

Thanks,
Chase

@chase-hunter
Copy link
Owner

Issue recap:

  • My fork of ZMK used in this repo does not offer mouse emulation support
  • Give the test repo a try in the meantime until I update this repo: dance! trials repo

@mmarchi123
Copy link
Author

Thank you again

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

2 participants