2017-03-07 17:41:10 +01:00
|
|
|
#include "magicforce68.h"
|
|
|
|
|
|
|
|
#define _QWERTY 0
|
|
|
|
#define _FN1 1
|
|
|
|
#define _FN2 2
|
|
|
|
#define KC_ KC_TRNS
|
2017-03-08 05:08:44 +01:00
|
|
|
#define KC_X0 LT(_FN2, KC_GRV)
|
|
|
|
#define KC_X1 MO(_FN1)
|
2017-02-22 22:51:25 +01:00
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2017-03-07 17:41:10 +01:00
|
|
|
[_QWERTY] = KEYMAP(
|
|
|
|
/*,----+----+----+----+----+----+----+----+----+----+----+----+----+--------. ,----+----. */
|
|
|
|
ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,MINS,EQL , BSPC , INS ,PGUP,
|
|
|
|
/*|----`----`----`----`----`----`----`----`----`----`----`----`----`--------| |----`----| */
|
|
|
|
TAB , Q , W , E , R , T , Y , U , I , O , P ,LBRC,RBRC, BSLS , DEL ,PGDN,
|
|
|
|
/*|------`----`----`----`----`----`----`----`----`----`----`----`----`------| `----`----' */
|
2017-03-08 05:08:44 +01:00
|
|
|
X0 , A , S , D , F , G , H , J , K , L ,SCLN,QUOT, ENTER ,
|
2017-03-07 17:41:10 +01:00
|
|
|
/*|-------`----`----`----`----`----`----`----`----`----`----`----`----------| ,----. */
|
|
|
|
LSFT , Z , X , C , V , B , N , M ,COMM,DOT ,SLSH, RSFT , UP ,
|
|
|
|
/*|---------`----`----`----`----`----`----`----`----`----`----`-------------.--|----|----. */
|
2017-03-08 05:08:44 +01:00
|
|
|
LCTL ,LGUI ,LALT , SPACE , X1 ,RALT ,RCTL , LEFT,DOWN,RGHT
|
2017-03-07 17:41:10 +01:00
|
|
|
/*`-----+-----+-----+------------------------------+------+-----+-----' `----+----+----' */
|
2017-02-22 22:51:25 +01:00
|
|
|
),
|
2017-03-07 17:41:10 +01:00
|
|
|
|
|
|
|
[_FN1] = KEYMAP(
|
|
|
|
/*,----+----+----+----+----+----+----+----+----+----+----+----+----+--------. ,----+----. */
|
|
|
|
GRV , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 ,F12 , BSPC , VOLU,HOME,
|
|
|
|
/*|esc-`-1--`-2--`-3--`-4--`-5--`-6--`-7--`-8--`-9--`-0--`mnus`plus`--bksp--| |ins-`pgup| */
|
|
|
|
, , , UP , , , , , , , , , , , VOLD,END,
|
|
|
|
/*|tab---`-q--`-w--`-e--`-r--`-t--`-y--`-u--`-i--`-o--`-p--`-{--`-}--`--|---| `del-`pgdn' */
|
|
|
|
, ,LEFT,DOWN,RGHT, , , , , , , , ,
|
|
|
|
/*|caps---`-a--`-s--`-d--`-f--`-g--`-h--`-j--`-k--`-l--`-;--`-'--`----enter-| ,----. */
|
|
|
|
, , , , , , ,MUTE, , , , , MUTE,
|
|
|
|
/*|shift----`-z--`-x--`-c--`-v--`-b--`-n--`-m--`-,--`-.--`-/--`-------shift-.--|-up-|----. */
|
|
|
|
, , , , , , , MPRV,MPLY,MNXT
|
|
|
|
/*`ctrl-+-gui-+-alt-+----------space---------------+-fn---+-alt-+ctrl-' `left+down+rght' */
|
2017-02-22 22:51:25 +01:00
|
|
|
),
|
2017-03-07 17:41:10 +01:00
|
|
|
|
|
|
|
[_FN2] = KEYMAP(
|
|
|
|
/*,----+----+----+----+----+----+----+----+----+----+----+----+----+--------. ,----+----. */
|
|
|
|
GRV , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 ,F12 , BSPC , VOLU,HOME,
|
|
|
|
/*|esc-`-1--`-2--`-3--`-4--`-5--`-6--`-7--`-8--`-9--`-0--`mnus`plus`--bksp--| |ins-`pgup| */
|
|
|
|
, , , UP , , , , 7 , 8 , 9 , , , , , VOLD,END,
|
|
|
|
/*|tab---`-q--`-w--`-e--`-r--`-t--`-y--`-u--`-i--`-o--`-p--`-{--`-}--`--|---| `del-`pgdn' */
|
|
|
|
, ,LEFT,DOWN,RGHT, , , 4 , 5 , 6 , , , ,
|
|
|
|
/*|caps---`-a--`-s--`-d--`-f--`-g--`-h--`-j--`-k--`-l--`-;--`-'--`----enter-| ,----. */
|
|
|
|
, , , , , , 0 , 1 , 2 , 3 , , , MUTE,
|
|
|
|
/*|shift----`-z--`-x--`-c--`-v--`-b--`-n--`-m--`-,--`-.--`-/--`-------shift-.--|-up-|----. */
|
|
|
|
, , , , , , , MPRV,MPLY,MNXT
|
|
|
|
/*`ctrl-+-gui-+-alt-+----------space---------------+-fn---+-alt-+ctrl-' `left+down+rght' */
|
|
|
|
)
|
2017-02-22 22:51:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
{
|
|
|
|
// MACRODOWN only works in this function
|
|
|
|
switch(id) {
|
|
|
|
case 0:
|
|
|
|
if (record->event.pressed) {
|
|
|
|
register_code(KC_RSFT);
|
|
|
|
} else {
|
|
|
|
unregister_code(KC_RSFT);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return MACRO_NONE;
|
|
|
|
};
|