diff options
author | James Young <xxiinophobia@yahoo.com> | 2020-02-29 12:00:00 -0800 |
---|---|---|
committer | James Young <xxiinophobia@yahoo.com> | 2020-02-29 11:59:30 -0800 |
commit | 26eef35f07698d23aafae90e1c230b52e100a334 (patch) | |
tree | eb8e43fc58ca55788e6e89430af0db55ea79e324 /keyboards/planck/keymaps | |
parent | 85041ff05bf0e5f4ff4535caf6e638491a5614c8 (diff) |
2020 February 29 Breaking Changes Update (#8064)
Diffstat (limited to 'keyboards/planck/keymaps')
124 files changed, 4196 insertions, 4520 deletions
diff --git a/keyboards/planck/keymaps/ab/keymap.c b/keyboards/planck/keymaps/ab/keymap.c index 50123f2ee9..c028e7949f 100644 --- a/keyboards/planck/keymaps/ab/keymap.c +++ b/keyboards/planck/keymaps/ab/keymap.c @@ -1,11 +1,5 @@ -#pragma message "You may need to add LAYOUT_planck_grid to your keymap layers - see default for an example" -#include "planck.h" -#include "action_layer.h" -#include "eeconfig.h" -#ifdef BACKLIGHT_ENABLE - #include "backlight.h" -#endif +#include QMK_KEYBOARD_H extern keymap_config_t keymap_config; @@ -30,8 +24,8 @@ extern keymap_config_t keymap_config; #define CUS2 M(_CUS2) // Func macro definitions. -#define LWR_PGDN FUNC(0) // Tap for PgDn, hold for LOWER -#define RSE_PGUP FUNC(1) // Tap for PgUp, hold for RAISE +#define LWR_PGDN LT(_LOWER, KC_PGDN) // Tap for PgDn, hold for LOWER +#define RSE_PGUP LT(_RAISE, KC_PGUP) // Tap for PgUp, hold for RAISE #define CTL_CAPS FUNC(2) // Tap for Caps, hold for Ctrl (DOESN'T SEEM TO WORK) #define SFT_ENT FUNC(3) // Tap for Enter, hold for Shift #define ZM_NRM FUNC(4) // Zoom normal @@ -41,8 +35,6 @@ extern keymap_config_t keymap_config; // Enable these functions using FUNC(n) macro. const uint16_t PROGMEM fn_actions[] = { - [0] = ACTION_LAYER_TAP_KEY(_LOWER, KC_PGDN), - [1] = ACTION_LAYER_TAP_KEY(_RAISE, KC_PGUP), [2] = ACTION_MODS_TAP_KEY(MOD_LCTL, KC_CAPS), [3] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_ENT), [4] = ACTION_MODS_KEY(MOD_LCTL, KC_0), @@ -53,30 +45,30 @@ const uint16_t PROGMEM fn_actions[] = { // This config can be found at Keyboard layout editor site: http://goo.gl/zjXL2l const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[_QWERTY] = { /* QWERTY */ - {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, - {KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT}, - {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT}, - {KC_LCTL, KC_ESC, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT} -}, -[_LOWER] = { /* LOWER */ |