diff options
author | Albert Y <76888457+filterpaper@users.noreply.github.com> | 2022-01-04 01:07:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 09:07:58 -0800 |
commit | a88dc08643af76e19eff72dbd9b2a0cefea3f23f (patch) | |
tree | 4357b7a73ee3cbf779fc12e1ef5d55f72e42da31 /docs/feature_macros.md | |
parent | d49b46a30d4fbd2b663b623b3cc6a4a67d631646 (diff) |
[Docs] Note the order of enumerated custom keycodes (#15706)
Co-authored-by: filterpaper <filterpaper@localhost>
Diffstat (limited to 'docs/feature_macros.md')
-rw-r--r-- | docs/feature_macros.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/feature_macros.md b/docs/feature_macros.md index 4368853569..f39c1a40e8 100644 --- a/docs/feature_macros.md +++ b/docs/feature_macros.md @@ -193,6 +193,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; ``` +?> An enumerated list of custom keycodes (`enum custom_keycodes`) must be declared before `keymaps[]` array, `process_record_user()` and any other function that use the list for the compiler to recognise it. + #### Advanced Macros In addition to the `process_record_user()` function, is the `post_process_record_user()` function. This runs after `process_record` and can be used to do things after a keystroke has been sent. This is useful if you want to have a key pressed before and released after a normal key, for instance. |