diff options
| author | tmk <nobody@nowhere> | 2013-03-31 22:47:19 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-03-31 22:47:19 +0900 |
| commit | 10f33a3e484e24065ed5eaab1c56c35156bace89 (patch) | |
| tree | 8b938962644ad2d04261655bc9487984e86e4996 /common/layer_switch.h | |
| parent | 353a9b56e6caee853d3f808d2bfedf07056b4518 (diff) | |
| download | qmk_firmware-10f33a3e484e24065ed5eaab1c56c35156bace89.tar.gz qmk_firmware-10f33a3e484e24065ed5eaab1c56c35156bace89.zip | |
Remove ACT_KEYMAP and ACT_OVERLAY
- Remove ACT_OVERLAY
- Rename ACT_KEYMAP to ACT_LAYER
- Add ACT_LAYER_BITOP
Diffstat (limited to 'common/layer_switch.h')
| -rw-r--r-- | common/layer_switch.h | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/common/layer_switch.h b/common/layer_switch.h index eb4cf61ba..423dafb5b 100644 --- a/common/layer_switch.h +++ b/common/layer_switch.h | |||
| @@ -22,11 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 22 | #include "action.h" | 22 | #include "action.h" |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | /* overlays are asigned at layer 16-31 */ | ||
| 26 | #define OVERLAY_BIT 0x10 | ||
| 27 | #define OVERLAY_MASK 0x0F | ||
| 28 | |||
| 29 | |||
| 30 | /* | 25 | /* |
| 31 | * Default Layer | 26 | * Default Layer |
| 32 | */ | 27 | */ |
| @@ -38,7 +33,7 @@ void default_layer_set(uint8_t layer); | |||
| 38 | /* | 33 | /* |
| 39 | * Keymap Layer | 34 | * Keymap Layer |
| 40 | */ | 35 | */ |
| 41 | #ifndef NO_ACTION_KEYMAP | 36 | #ifndef NO_ACTION_LAYER |
| 42 | extern uint16_t keymap_stat; | 37 | extern uint16_t keymap_stat; |
| 43 | /* return current active layer */ | 38 | /* return current active layer */ |
| 44 | uint8_t keymap_get_layer(void); | 39 | uint8_t keymap_get_layer(void); |
| @@ -69,41 +64,6 @@ void keymap_debug(void); | |||
| 69 | #endif | 64 | #endif |
| 70 | 65 | ||
| 71 | 66 | ||
| 72 | /* | ||
| 73 | * Overlay Layer | ||
| 74 | */ | ||
| 75 | #ifndef NO_ACTION_OVERLAY | ||
| 76 | extern uint16_t overlay_stat; | ||
| 77 | /* return current active layer */ | ||
| 78 | uint8_t overlay_get_layer(void); | ||
| 79 | void overlay_clear(void); | ||
| 80 | void overlay_set(uint16_t stat); | ||
| 81 | void overlay_move(uint8_t layer); | ||
| 82 | void overlay_on(uint8_t layer); | ||
| 83 | void overlay_off(uint8_t layer); | ||
| 84 | void overlay_invert(uint8_t layer); | ||
| 85 | /* bitwise operation */ | ||
| 86 | void overlay_or(uint16_t stat); | ||
| 87 | void overlay_and(uint16_t stat); | ||
| 88 | void overlay_xor(uint16_t stat); | ||
| 89 | void overlay_debug(void); | ||
| 90 | #else | ||
| 91 | #define overlay_stat 0 | ||
| 92 | #define overlay_get_layer() | ||
| 93 | #define overlay_clear() | ||
| 94 | #define overlay_set(stat) | ||
| 95 | #define overlay_move(layer) | ||
| 96 | #define overlay_on(layer) | ||
| 97 | #define overlay_off(layer) | ||
| 98 | #define overlay_invert(layer) | ||
| 99 | #define overlay_or(stat) | ||
| 100 | #define overlay_and(stat) | ||
| 101 | #define overlay_xor(stat) | ||
| 102 | #define overlay_debug() | ||
| 103 | #endif | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | /* return action depending on current layer status */ | 67 | /* return action depending on current layer status */ |
| 108 | action_t layer_switch_get_action(key_t key); | 68 | action_t layer_switch_get_action(key_t key); |
| 109 | 69 | ||
