|
|
@ -81,6 +81,7 @@ class Layer_ {
|
|
|
|
// The `Runtime.lookupKey()` function replaces this one, for plugins that
|
|
|
|
// The `Runtime.lookupKey()` function replaces this one, for plugins that
|
|
|
|
// still want to do this same check.
|
|
|
|
// still want to do this same check.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NDEPRECATED
|
|
|
|
DEPRECATED(LAYER_LOOKUP)
|
|
|
|
DEPRECATED(LAYER_LOOKUP)
|
|
|
|
static Key lookup(KeyAddr key_addr) {
|
|
|
|
static Key lookup(KeyAddr key_addr) {
|
|
|
|
// First check the keyboard state array
|
|
|
|
// First check the keyboard state array
|
|
|
@ -91,6 +92,8 @@ class Layer_ {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return key;
|
|
|
|
return key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
static Key lookupOnActiveLayer(KeyAddr key_addr) {
|
|
|
|
static Key lookupOnActiveLayer(KeyAddr key_addr) {
|
|
|
|
uint8_t layer = active_layer_keymap_[key_addr.toInt()];
|
|
|
|
uint8_t layer = active_layer_keymap_[key_addr.toInt()];
|
|
|
|
return (*getKey)(layer, key_addr);
|
|
|
|
return (*getKey)(layer, key_addr);
|
|
|
@ -125,12 +128,15 @@ class Layer_ {
|
|
|
|
|
|
|
|
|
|
|
|
static Key getKeyFromPROGMEM(uint8_t layer, KeyAddr key_addr);
|
|
|
|
static Key getKeyFromPROGMEM(uint8_t layer, KeyAddr key_addr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef NDEPRECATED
|
|
|
|
DEPRECATED(LAYER_UPDATELIVECOMPOSITEKEYMAP)
|
|
|
|
DEPRECATED(LAYER_UPDATELIVECOMPOSITEKEYMAP)
|
|
|
|
static void updateLiveCompositeKeymap(KeyAddr key_addr, Key mappedKey) {
|
|
|
|
static void updateLiveCompositeKeymap(KeyAddr key_addr, Key mappedKey) {
|
|
|
|
live_keys.activate(key_addr, mappedKey);
|
|
|
|
live_keys.activate(key_addr, mappedKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DEPRECATED(LAYER_UPDATELIVECOMPOSITEKEYMAP)
|
|
|
|
DEPRECATED(LAYER_UPDATELIVECOMPOSITEKEYMAP)
|
|
|
|
static void updateLiveCompositeKeymap(KeyAddr key_addr);
|
|
|
|
static void updateLiveCompositeKeymap(KeyAddr key_addr) {}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
static void updateActiveLayers(void);
|
|
|
|
static void updateActiveLayers(void);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|