Greatly Reduce Azoteq Hold Time for dragging/scrolling motions, added extra DPI & MouseKeys Auto timeout choices#6
Merged
Conversation
Increased mh_timer_choices array from 4 to 6.
Increased mh_timer_choices array to allow 6 options, and included 200, and 400, as timeout options in the array. Added 600 to the dpi array as a choice when looping through it.
defining this parameter decreases the required 'wait' time to activate dragging/selecting on a touchpad touch from the default 300ms to 20ms. Big QoL.
Owner
|
4a: It is not in scope for this PR, so it isn't considered in the review. LGTM. |
This file contains hidden or 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
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.
Hello! Per our small discussion in the svalboard discord, I have created a new branch and implemented some super minor tweaks in my branch azo-touches-9-2025
I added
#define AZOTEQ_IQS5XX_HOLD_TIME 20tokeyboards/svalboard/azoteq/config.hto alter the default (and until this moment, undefined/undeclared, functionality of Hold-Tap action on the Azoteq touchpad. The default 300 ms hold time forces any azoteq user to wait 'a beat' whenever they wish to interact with a window resizing handle, or window moving frame. It also affects the ability to select text or drag and drop files. Lowering it to 20 ms greatly increases comfort. You can see this documented simply, here: https://docs.qmk.fm/features/pointing_device#gesture-settingsI increased the defined array,
extern const int16_t mh_timer_choices[6];inkeyboards/svalboard/svalboard.hfrom the previous 4 options. This will come into play in...keyboards/svalboard/svalboard.cwhere I have matched the array number from 2. and used the extra array options to provide 200 ms, and 400 ms timeouts for mousekeys.const int16_t mh_timer_choices[6] = { 200, 300, 400, 500, 800, -1 }; // -1 is infinite.Farther down in the same file, I had added 600 as a dpi choice in that options array:
const uint16_t dpi_choices[] = { 200, 400, 600, 800, 1200, 1600, 2400 }; // If we need more, add them.4-A. There is a final tweak I made, that is not included in this PR, since the way I handled it was clunky, and we believe there is a cleaner way to handle letting the sval-sides communicate their status and appropriately handle a toggle for it, but to sum it it up:
If you use a left-sided azoteq as a dedicated scrolling device (SCROLL_LOCKED), you may find that the single-finger 'scroll' and the two-finger scroll act inverted to each other.
If you navigate to
keyboards/svalboard/keymaps/keymap_support.cand find the functionif ((global_saved_values.left_scroll != scroll_hold) != scroll_toggle) ...simply adjust the converted output ofreportMouse1.v = add_to_axis(&l_y -reportMouse1.y);toreportMouse1.v = add_to_axis(&l_y, reportMouse1.y);Next steps, to better implement the axis lock and hopefully toggle swap, is:
Happy to discuss more.