1
0
Fork 0

Add keymap wrappers for introspection into the keymap. (#17229)

* Introspection handlers for keymaps.

* Renaming.
This commit is contained in:
Nick Brassel 2022-06-05 10:26:02 +10:00 committed by GitHub
parent af84772a5f
commit 08c556b78b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 1 deletions

View file

@ -0,0 +1,15 @@
// 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)