upload
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

default.c 706B

123456789101112131415161718192021222324252627282930
  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 "%KEYBOARD%.h"
  4. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  5. [0] = KEYMAP( /* Base */
  6. KC_A, KC_1, KC_H, \
  7. KC_TAB, KC_SPC \
  8. ),
  9. };
  10. const uint16_t PROGMEM fn_actions[] = {
  11. };
  12. const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
  13. {
  14. // MACRODOWN only works in this function
  15. switch(id) {
  16. case 0:
  17. if (record->event.pressed) {
  18. register_code(KC_RSFT);
  19. } else {
  20. unregister_code(KC_RSFT);
  21. }
  22. break;
  23. }
  24. return MACRO_NONE;
  25. };