Additional changes for Layer State typedef compatibility (#5906)
* Additional changes for Layer State typedef compatibility * Replace biton32 with get_highest_layer in docs * Change additional layer structure code * Fix uGFX reference issue * Remove dynamic_keymap check * Where did all these extra spaces come from Co-Authored-By: fauxpark <[email protected]>
This commit is contained in:
1 parent
d534c72a54
commit
b62e160a89
9 files changed
+25
-21
No files matched your search
@@ -21,12 +21,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "keyboard.h"
|
||||
#include "action.h"
|
||||
|
||||
#if defined(LAYER_STATE_8BIT) || ( defined(DYNAMIC_KEYMAP_ENABLE) && DYNAMIC_KEYMAP_LAYER_COUNT >= 8 )
|
||||
#if defined(LAYER_STATE_8BIT)
|
||||
typedef uint8_t layer_state_t;
|
||||
#define get_highest_layer(state) biton8(state)
|
||||
#elif defined(LAYER_STATE_16BIT)
|
||||
typedef uint16_t layer_state_t;
|
||||
#define get_highest_layer(state) biton16(state)
|
||||
#else
|
||||
typedef uint32_t layer_state_t;
|
||||
#define get_highest_layer(state) biton32(state)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user