Add user level to default_layer_state_set
This commit is contained in:
parent
da6c58175a
commit
4318797d19
@ -15,13 +15,22 @@
|
|||||||
*/
|
*/
|
||||||
uint32_t default_layer_state = 0;
|
uint32_t default_layer_state = 0;
|
||||||
|
|
||||||
|
/** \brief Default Layer State Set At user Level
|
||||||
|
*
|
||||||
|
* FIXME: Needs docs
|
||||||
|
*/
|
||||||
|
__attribute__((weak))
|
||||||
|
uint32_t default_layer_state_set_user(uint32_t state) {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
/** \brief Default Layer State Set At Keyboard Level
|
/** \brief Default Layer State Set At Keyboard Level
|
||||||
*
|
*
|
||||||
* FIXME: Needs docs
|
* FIXME: Needs docs
|
||||||
*/
|
*/
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
uint32_t default_layer_state_set_kb(uint32_t state) {
|
uint32_t default_layer_state_set_kb(uint32_t state) {
|
||||||
return state;
|
return default_layer_state_set_user(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** \brief Default Layer State Set
|
/** \brief Default Layer State Set
|
||||||
|
@ -31,6 +31,8 @@ void default_layer_set(uint32_t state);
|
|||||||
|
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
uint32_t default_layer_state_set_kb(uint32_t state);
|
uint32_t default_layer_state_set_kb(uint32_t state);
|
||||||
|
__attribute__((weak))
|
||||||
|
uint32_t default_layer_state_set_user(uint32_t state);
|
||||||
|
|
||||||
#ifndef NO_ACTION_LAYER
|
#ifndef NO_ACTION_LAYER
|
||||||
/* bitwise operation */
|
/* bitwise operation */
|
||||||
|
@ -403,8 +403,8 @@ uint32_t layer_state_set_user(uint32_t state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t default_layer_state_set_kb(uint32_t state) {
|
uint32_t default_layer_state_set_user(uint32_t state) {
|
||||||
return default_layer_state_set_keymap (state);
|
return default_layer_state_set_keymap(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user