some basic debug messages
parent
fd9de01514
commit
01be9a4d7f
|
@ -188,6 +188,10 @@ void layer_disable(uint8_t layer) {
|
|||
if (layer >= KB_LAYERS || layer == 0) { return; }
|
||||
|
||||
layers_active[layer] = false;
|
||||
|
||||
if (layers_sticky[layer] != StickyNone) {
|
||||
debug_print("sticky up!\n");
|
||||
}
|
||||
layers_sticky[layer] = StickyNone;
|
||||
|
||||
if (layer == layers_top) {
|
||||
|
@ -475,6 +479,7 @@ void kbfun_layer_sticky() {
|
|||
layer_disable_top();
|
||||
}
|
||||
layer_enable(layer, StickyOnceDown);
|
||||
debug_print("sticky down!\n");
|
||||
|
||||
// this should be the only place we care about this flag being cleared
|
||||
non_trans_key_pressed = false;
|
||||
|
@ -489,6 +494,7 @@ void kbfun_layer_sticky() {
|
|||
// was pressed, push the layer again, but in the
|
||||
// StickyOnceUp state
|
||||
layer_enable(layer, StickyOnceUp);
|
||||
debug_print("sticky still down!\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue