mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 20:56:42 +00:00
08c556b78b
* Introspection handlers for keymaps. * Renaming.
16 lines
424 B
C
16 lines
424 B
C
// Copyright 2022 Nick Brassel (@tzarc)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
// Get the number of layers defined in the keymap
|
|
uint8_t keymap_layer_count(void);
|
|
|
|
#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
|
|
|
// Get the number of layers defined in the encoder map
|
|
uint8_t encodermap_layer_count(void);
|
|
|
|
#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|