Move layer handling to a separate file
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "layer.h"
|
||||
|
||||
uint8_t ActiveLayer = LAYER_ID_BASE;
|
||||
|
||||
void Layer_MoveTo(uint8_t layer) {
|
||||
ActiveLayer = layer;
|
||||
}
|
||||
|
||||
void Layer_MoveToBase() {
|
||||
Layer_MoveTo(LAYER_ID_BASE);
|
||||
}
|
||||
Reference in New Issue
Block a user