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

Experimental feature mouse emulation using out of date key codes #228

Closed
aaroncorgan opened this issue Jun 6, 2024 · 2 comments
Closed

Comments

@aaroncorgan
Copy link

aaroncorgan commented Jun 6, 2024

It looks like mouse emulation development is moving along and the community has consoledated their efforts into a single pull request: Mouse keys/button/scroll

This PR is by pete johanson (creator of zmk) and combines the work of several other PRs and his own together and all of the authors are contributing to a single branch. The keycodes have changed and this has made the mouse emulation feature on the keymap editor no longer function and builds no longer compile until the user goes and manually edits their keymap to the new values.

Here is the documentation for the feature that details all the new keycodes: https://github.com/petejohanson/zmk/blob/feat/pointers-move-scroll/docs/docs/behaviors/mouse-emulation.md

In summary, these are the current codes and the values they need to be changed to:

OLD NEW
&mkp Unchanged
MB6 Removed
MB7 Removed
MB8 Removed
&mmv Unchanged
MOVE Removed
MOVE_HOR Removed
MOVE_VERT Removed
&mwh &msc
SCROLL Removed
SCROLL_HOR Removed
SCROLL_VERT Removed
SCROLL_UP MOVE_UP
SCROLL_DOWN MOVE_DOWN
SCROLL_LEFT MOVE_LEFT
SCROLL_RIGHT MOVE_RIGHT

These are going to be the final values for the eventual release, so there wont be any additional changes moving forwards.

@nickcoutsos
Copy link
Owner

Yeah this is kind of what I wanted to avoid. It's good to know that the official implementation has nailed down its interface but my concern right now is that I have no insight into how many people are dropping other forks in favor of this one.

I think for everyone's sake what I'll do is add all of the relevant behaviors/codes and make sure to make users aware of the differences.

Thank you for pointing me to this documentation, I haven't been able to keep up with a lot of these things lately!

@nickcoutsos
Copy link
Owner

Pushed some changes and added a note to the wiki. It's not ideal but that's kind of the nature of this feature (trying to support things not in he main ZMK branch) anyway.

Feel free to re-open if something still isn't working.

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