From c6d88d27956c4b76f8819fcdb076bf94a8f55868 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 2 Apr 2013 17:44:24 +0900 Subject: Rename file layer_switch to action_layer --- common/layer_switch.c | 135 -------------------------------------------------- 1 file changed, 135 deletions(-) delete mode 100644 common/layer_switch.c (limited to 'common/layer_switch.c') diff --git a/common/layer_switch.c b/common/layer_switch.c deleted file mode 100644 index 9905741f48..0000000000 --- a/common/layer_switch.c +++ /dev/null @@ -1,135 +0,0 @@ -#include -#include "keyboard.h" -#include "action.h" -#include "debug.h" -#include "util.h" -#include "layer_switch.h" - - -/* - * Default Layer State - */ -uint32_t default_layer_state = 0; - -static void default_layer_state_set(uint32_t state) -{ - debug("default_layer_state: "); - default_layer_debug(); debug(" to "); - default_layer_state = state; - default_layer_debug(); debug("\n"); - clear_keyboard_but_mods(); // To avoid stuck keys -} - -void default_layer_debug(void) -{ - debug_hex32(default_layer_state); - debug("("); debug_dec(biton32(default_layer_state)); debug(")"); -} - -void default_layer_set(uint8_t layer) -{ - default_layer_state_set(1UL<= 0; i--) { - if (layers & (1UL<