default.c 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. #include "retro_refit.h"
  4. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  5. [0] =
  6. KEYMAP( ESC, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, NLCK, SLCK, PSCR, PAUS, \
  7. GRV, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS, EQL, BSPC, HOME, \
  8. TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC, RBRC, PGUP, \
  9. BSLS, A, S, D, F, G, H, J, K, L, SCLN, QUOT, ENT, PGDN, \
  10. LSFT, Z, X, C, V, B, N, M, COMM, DOT, SLSH, RSFT, UP, END, \
  11. LCTL, LGUI, LALT, SPC, INS, DEL, LEFT, DOWN, RGHT),
  12. };
  13. const uint16_t PROGMEM fn_actions[] = {
  14. };
  15. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
  16. {
  17. // MACRODOWN only works in this function
  18. switch(id) {
  19. case 0:
  20. if (record->event.pressed) {
  21. register_code(KC_RSFT);
  22. } else {
  23. unregister_code(KC_RSFT);
  24. }
  25. break;
  26. }
  27. return MACRO_NONE;
  28. };