diff options
author | Nick Brassel <[email protected]> | 2023-11-28 16:39:48 +1100 |
---|---|---|
committer | Nick Brassel <[email protected]> | 2023-11-28 16:40:47 +1100 |
commit | 0115951de12bd4c798a43a380651c34552552e85 (patch) | |
tree | 62999011ae782d93aa6dc9c889615db2a840cafc /users/callum/swapper.c | |
parent | 0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff) | |
parent | 4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff) | |
download | qmk_firmware-0.23.0.tar.gz qmk_firmware-0.23.0.zip |
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'users/callum/swapper.c')
-rw-r--r-- | users/callum/swapper.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/users/callum/swapper.c b/users/callum/swapper.c deleted file mode 100644 index 736b2fef0c..0000000000 --- a/users/callum/swapper.c +++ /dev/null @@ -1,27 +0,0 @@ -#include "swapper.h" - -void update_swapper( - bool *active, - uint16_t cmdish, - uint16_t tabish, - uint16_t trigger, - uint16_t keycode, - keyrecord_t *record -) { - if (keycode == trigger) { - if (record->event.pressed) { - if (!*active) { - *active = true; - register_code(cmdish); - } - register_code(tabish); - } else { - unregister_code(tabish); - // Don't unregister cmdish until some other key is hit or released. - } - } else if (*active) { - unregister_code(cmdish); - *active = false; - } -} - |