diff options
author | Joel Challis <[email protected]> | 2024-11-23 10:09:34 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-23 10:09:34 +0000 |
commit | 4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68 (patch) | |
tree | 6dedf92beaa32ddd33476aec43c856f6a37901ed /quantum/process_keycode/process_default_layer.h | |
parent | 9e9b4acbde48acbe51fb9ff198be5dce49608ee9 (diff) | |
download | qmk_firmware-4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68.tar.gz qmk_firmware-4a5bae51cd1f2cbca0ab8c8ae6e15262f8dc5a68.zip |
[Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#24630)
* [Feature] Add keycode PDF(layer) to set the default layer in EEPROM (#21881)
* Apply suggestions from code review
Co-authored-by: Nick Brassel <[email protected]>
---------
Co-authored-by: Nebuleon <[email protected]>
Co-authored-by: Nick Brassel <[email protected]>
Diffstat (limited to 'quantum/process_keycode/process_default_layer.h')
-rw-r--r-- | quantum/process_keycode/process_default_layer.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_default_layer.h b/quantum/process_keycode/process_default_layer.h new file mode 100644 index 0000000000..246d995817 --- /dev/null +++ b/quantum/process_keycode/process_default_layer.h @@ -0,0 +1,27 @@ +/* Copyright 2023 Nebuleon + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#pragma once + +#include <stdint.h> +#include <stdbool.h> +#include "action.h" + +#if !defined(NO_ACTION_LAYER) + +bool process_default_layer(uint16_t keycode, keyrecord_t *record); + +#endif // !defined(NO_ACTION_LAYER) |