Atreus52- Changed to KEYMAP macro format.
This commit is contained in:
parent
a5ba30338f
commit
bb99d7117c
1 changed files with 27 additions and 33 deletions
|
@ -1,10 +1,4 @@
|
||||||
// this is the style you want to emulate.
|
#include "atreus62.h"
|
||||||
// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
|
|
||||||
|
|
||||||
#include "menelaus.h"
|
|
||||||
|
|
||||||
#define ____ KC_TRNS
|
|
||||||
#define xxxx KC_NO
|
|
||||||
|
|
||||||
// Layers
|
// Layers
|
||||||
#define QW 0
|
#define QW 0
|
||||||
|
@ -13,38 +7,38 @@
|
||||||
#define DL 3
|
#define DL 3
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[_QWERTY] = KEYMAP(
|
[QW] = KEYMAP(
|
||||||
1, 2, 3, 4, 5, ____, 6, 7, 8, 9, 0, \
|
NO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, NO, \
|
||||||
Q, W, E, R, T, ____, Y, U, I, O, P, \
|
NO, Q, W, E, R, T, Y, U, I, O, P, NO, \
|
||||||
A, S, D, F, G, ____, H, J, K, L, SCLN, \
|
NO, A, S, D, F, G, H, J, K, L, SCLN, NO, \
|
||||||
Z, X, C, V, B, BSPC, N, M, COMM, DOT, SLSH, \
|
NO, Z, X, C, V, B, N, M, COMM, DOT, SLSH, NO, \
|
||||||
ESC, TAB, LCTL, MO(QL),LSFT, ENT, SPC, LALT, LGUI, LEFT, RGHT ),
|
NO, ESC, TAB, LCTL, FN1, LSFT, BSPC, ENT, SPC, LALT, LGUI, LEFT, RGHT, NO ),
|
||||||
|
|
||||||
[_QUP] = KEYMAP(
|
[QL] = KEYMAP(
|
||||||
F1, F2, F3, F4, F5, ____, F6, F7, F8, F9, F10, \
|
NO, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, NO, \
|
||||||
____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, \
|
NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO, \
|
||||||
____, ____, ____, ____, ____, ____, ____, LEFT, DOWN, UP, RGHT, \
|
NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, LEFT, DOWN, UP, RGHT, NO, \
|
||||||
____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, \
|
NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO, \
|
||||||
____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ),
|
NO, TRNS, TRNS, TRNS, FN1, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO ),
|
||||||
|
|
||||||
[_DVORAK] = KEYMAP(
|
[DV] = KEYMAP(
|
||||||
1, 2, 3, 4, 5, ____, 6, 7, 8, 9, 0, \
|
NO, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, NO, \
|
||||||
QUOT, COMM, DOT, P, Y, ____, F, G, C, R, L, \
|
NO, QUOT, COMM, DOT, P, Y, F, G, C, R, L, NO, \
|
||||||
A, O, E, U, I, ____, D, H, T, N, S, \
|
NO, A, O, E, U, I, D, H, T, N, S, NO, \
|
||||||
SCLN, Q, J, K, X, BSPC, B, M, W, V, Z, \
|
NO, SCLN, Q, J, K, X, B, M, W, V, Z, NO, \
|
||||||
ESC, TAB, LCTL, MO(DP),LSFT, ENT, SPC, LALT, LGUI, LEFT, RGHT ),
|
NO, ESC, TAB, LCTL, F2, LSFT, BSPC, ENT, SPC, LALT, LGUI, LEFT, RGHT, NO ),
|
||||||
|
|
||||||
[_QUP] = KEYMAP(
|
|
||||||
F1, F2, F3, F4, F5, ____, F6, F7, F8, F9, F10, \
|
|
||||||
____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, \
|
|
||||||
____, ____, ____, ____, ____, ____, ____, LEFT, DOWN, UP, RGHT, \
|
|
||||||
____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, \
|
|
||||||
____, ____, ____, ____, ____, ____, ____, ____, ____, ____, ____, )
|
|
||||||
|
|
||||||
|
[DL] = KEYMAP(
|
||||||
|
NO, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, NO, \
|
||||||
|
NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO, \
|
||||||
|
NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, LEFT, DOWN, UP, RGHT, NO, \
|
||||||
|
NO, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO, \
|
||||||
|
NO, TRNS, TRNS, TRNS, FN2, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, NO )
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint16_t PROGMEM fn_actions[] = {
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[1] = ACTION_LAYER_MOMENTARY(QL), // Qwerty FN layer
|
||||||
|
[2] = ACTION_LAYER_MOMENTARY(DV) // Dvorak FN layer
|
||||||
};
|
};
|
||||||
|
|
||||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||||
|
|
Loading…
Reference in a new issue