diff options
author | Drashna Jaelre <drashna@live.com> | 2022-01-21 19:36:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 19:36:52 -0800 |
commit | b090ff03ed4391f27e8e3d9a843f529bedd08e19 (patch) | |
tree | e734aa4541f05ed4f919f86ff36d85cbd17f795a /users/drashna/keyrecords/caps_word.c | |
parent | 8901c9eca1db8d10b06f544553a5fc941eda51ae (diff) |
[Keymap] Drashna's OLED rewrite (#15981)
Diffstat (limited to 'users/drashna/keyrecords/caps_word.c')
-rw-r--r-- | users/drashna/keyrecords/caps_word.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/drashna/keyrecords/caps_word.c b/users/drashna/keyrecords/caps_word.c index cc9ca93b72..0c7cd6cfe5 100644 --- a/users/drashna/keyrecords/caps_word.c +++ b/users/drashna/keyrecords/caps_word.c @@ -10,6 +10,16 @@ bool caps_word_enabled = false; bool caps_word_shifted = false; +/** + * @brief Handler for Caps Word feature. + * + * This checks the keycodes, and applies shift to the correct keys, if and when needid. + * + * @param keycode Keycode from matrix + * @param record keyrecord_t data structure + * @return true Continue processing keycode and sent to host + * @return false Stop processing keycode, and do not send to host + */ bool process_caps_word(uint16_t keycode, keyrecord_t* record) { if (!caps_word_enabled) { // Pressing both shift keys at the same time enables caps word. |