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/drashna/keyrecords/dynamic_macros.h | |
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/drashna/keyrecords/dynamic_macros.h')
-rw-r--r-- | users/drashna/keyrecords/dynamic_macros.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/users/drashna/keyrecords/dynamic_macros.h b/users/drashna/keyrecords/dynamic_macros.h deleted file mode 100644 index 5eefb9b268..0000000000 --- a/users/drashna/keyrecords/dynamic_macros.h +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2016 Jack Humbert -// Copyright 2019 Wojciech Siewierski < wojciech dot siewierski at onet dot pl > -// Copyright 2023 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]> -// SPDX-License-Identifier: GPL-2.0-or-later - -#pragma once - -#include "action.h" -#include "action_layer.h" - -#ifndef DYNAMIC_MACRO_COUNT -# define DYNAMIC_MACRO_COUNT 8 -#endif - -#ifndef DYNAMIC_MACRO_SIZE -# define DYNAMIC_MACRO_SIZE 64 -#endif - -enum dynamic_macro_recording_state { - STATE_NOT_RECORDING, - STATE_RECORD_KEY_PRESSED, - STATE_CURRENTLY_RECORDING, -}; - -typedef struct { - keyrecord_t events[DYNAMIC_MACRO_SIZE]; - uint8_t length; - uint16_t checksum; -} dynamic_macro_t; - -void dynamic_macro_init(void); -bool dynamic_macro_record_start(uint8_t macro_id); -void dynamic_macro_play(uint8_t macro_id); -void dynamic_macro_record_key(uint8_t macro_id, keyrecord_t* record); -void dynamic_macro_record_end(uint8_t macro_id); -bool process_record_dynamic_macro(uint16_t keycode, keyrecord_t* record); - -void dynamic_macro_record_start_user(void); -void dynamic_macro_play_user(uint8_t macro_id); -void dynamic_macro_record_key_user(uint8_t macro_id, keyrecord_t* record); -void dynamic_macro_record_end_user(uint8_t macro_id); - -#define DYNAMIC_MACRO_CRC_LENGTH (sizeof(dynamic_macro_t) - sizeof(uint16_t)) -#define IS_DYN_KEYCODE(keycode) (keycode >= DYN_MACRO_KEY00 && keycode <= DYN_MACRO_KEY15) - -uint16_t dynamic_macro_calc_crc(dynamic_macro_t* macro); -void dynamic_macro_load_eeprom_all(void); -void dynamic_macro_load_eeprom(uint8_t macro_id); -void dynamic_macro_save_eeprom(uint8_t macro_id); -bool dynamic_macro_header_correct(void); |