Skip to content

Auto mouse#2

Open
kuakeye wants to merge 3 commits into
bullwinkle3000:wylderbuildsfrom
kuakeye:AutoMouse
Open

Auto mouse#2
kuakeye wants to merge 3 commits into
bullwinkle3000:wylderbuildsfrom
kuakeye:AutoMouse

Conversation

@kuakeye

@kuakeye kuakeye commented Jun 5, 2023

Copy link
Copy Markdown

New Feature: Auto Mouse Layer

This PR integrates a new-ish feature from QMK pointing device: auto mouse layer.
Whenever a mouse event happens, the specified layer will be triggered.

The layer can be chosen using AUTO_MOUSE_DEFAULT_LAYER.

Other required 'user-facing changes' include changes in the following files:

  • config.h
  • keymap.c

These changes are included in this PR, with an example default layer pointing to layer enum 2. The only thing left to get it to work is to create some mouse-specific buttons on layer 2, or create a new mouse layer and set the AUTO_MOUSE_DEFAULT_LAYER accordingly.

@bullwinkle3000

Copy link
Copy Markdown
Owner

Thanks again for this! If I remember correctly, you mentioned there was some lingering odd behavior. Is that addressed in this PR? If not, could you remind me of what it is?

@kuakeye

kuakeye commented Jun 9, 2023

Copy link
Copy Markdown
Author

Oh, so I thought there's a bug where the keycode will still be sent from the top layer when in the auto mouse layer. But turns out, I was just using the 'passthrough' keycode "_______" which let non-assigned keycodes to pass through to the primary layer while on the auto mouse layer. The fix would be to use KC_NO instead of passthrough, and that would be a preferential thing

bullwinkle3000 added a commit that referenced this pull request Feb 14, 2024
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

Successfully merging this pull request may close these issues.

2 participants