]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/retro_refit/keymaps/default/keymap.c
adds backlight levels to the satan keyboard (#431)
[qmk_firmware.git] / keyboard / retro_refit / keymaps / default / keymap.c
1 // This is the canonical layout file for the Quantum project. If you want to add another keyboard,
2 // this is the style you want to emulate.
3
4 #include "retro_refit.h"
5
6 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7 [0] =
8         KEYMAP( ESC,    F1,   F2,   F3,   F4,   F5,   F6,   F7,   F8,  F9,  F10, NLCK, SLCK, PSCR, PAUS, \
9                         GRV,     1,    2,    3,    4,    5,    6,    7,    8,   9,    0, MINS,  EQL, BSPC, HOME, \
10                         TAB,     Q,    W,    E,    R,    T,    Y,    U,    I,   O,    P, LBRC, RBRC,       PGUP, \
11                         BSLS,    A,    S,    D,    F,    G,    H,    J,    K,   L, SCLN, QUOT,        ENT, PGDN, \
12                         LSFT,          Z,    X,    C,    V,    B,    N,    M, COMM, DOT, SLSH, RSFT,   UP,  END, \
13                         LCTL, LGUI, LALT,        SPC,                               INS,  DEL, LEFT, DOWN, RGHT),
14 };
15
16 const uint16_t PROGMEM fn_actions[] = {
17
18 };
19
20 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
21 {
22   // MACRODOWN only works in this function
23       switch(id) {
24         case 0:
25           if (record->event.pressed) {
26             register_code(KC_RSFT);
27           } else {
28             unregister_code(KC_RSFT);
29           }
30         break;
31       }
32     return MACRO_NONE;
33 };