Ikcelaks / qmk_sequence_transform

Sequence-Transform is a user library for QMK that enables a rich declarative ruleset for transforming a sequence of keypresses into any output you would like.
Apache License 2.0
5 stars 3 forks source link

create sequence_transform_map_key_user #2

Closed Ikcelaks closed 6 months ago

Ikcelaks commented 6 months ago

I created a weak function for mapping magic / special keys from the user's keymap custom keycode to the code expected by the trie (ie 0x01nn).

If the user defines all of their magic / special keys consecutively and defines SEQUENCE_TRANSFORM_SPECIAL_KEY_0 to be the keycode of the first special key, then the default sequence_transform_map_key_user function will automatically do the correct mapping. If the user wants to do more pre-processing of incoming key presses, they can do it here by overriding the function in their own code.