-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Input Listener: Auto Layer Toggle on mouse movement #2122
Closed
infused-kim
wants to merge
11
commits into
zmkfirmware:main
from
infused-kim:pr/input_config_auto_layer
Closed
Input Listener: Auto Layer Toggle on mouse movement #2122
infused-kim
wants to merge
11
commits into
zmkfirmware:main
from
infused-kim:pr/input_config_auto_layer
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Alexander Krikun <[email protected]> Co-authored-by: Robert U <[email protected]> Co-authored-by: Shawn Meier <[email protected]>
* Add ability to swap X/Y, invert X and Y values, and apply a scalar multiplier/divisor.
* Remove now-unused mouse work queue and related mouse main file. * Move ticks config into a DTS property on the two axis input behavior.
* Corrected logging for two-axis input timestamps.
* Buffer data from input devices and only surface to HID once synd'd.
Input Listener: Added logging Auto Layer Toggle: Added initial version Auto Layer Toggle: Changed how config is retrieved Auto Layer Toggle: Adjust logging
3b16ddb
to
a81da31
Compare
I updated the code to the new input listener system and updated the PR description with the new config. |
This has been made obsolete by the input processors PR I believe. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a way to toggle a layer whenever a mouse moves.
It was designed for the PS/2 Mouse & Trackpoint PR, but since it's using the new input listener system, it can be used with any mouse driver that's using the new zephyr 3.5 input system.
Configuration
In your
shield.dtsi
:As you can see the input config is disabled by default. Enable it only on the central half of your keyboard (such as
shield_right.overlay
:And then in your actual keymap: