Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

bootmagic.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef BOOTMAGIC_H
  2. #define BOOTMAGIC_H
  3. #ifndef BOOTMAGIC_KEY_SKIP
  4. #define BOOTMAGIC_KEY_SKIP KC_ESC
  5. #endif
  6. /* eeprom clear */
  7. #ifndef BOOTMAGIC_KEY_EEPROM_CLEAR
  8. #define BOOTMAGIC_KEY_EEPROM_CLEAR KC_BSPACE
  9. #endif
  10. /* kick up bootloader */
  11. #ifndef BOOTMAGIC_KEY_BOOTLOADER
  12. #define BOOTMAGIC_KEY_BOOTLOADER KC_B
  13. #endif
  14. /* debug enable */
  15. #define BOOTMAGIC_KEY_DEBUG_ENABLE KC_D
  16. #define BOOTMAGIC_KEY_DEBUG_MATRIX KC_X
  17. #define BOOTMAGIC_KEY_DEBUG_KEYBOARD KC_K
  18. #define BOOTMAGIC_KEY_DEBUG_MOUSE KC_M
  19. /*
  20. * keymap config
  21. */
  22. #define BOOTMAGIC_KEY_SWAP_CONTROL_CPASLOCK KC_LCTRL
  23. #define BOOTMAGIC_KEY_CAPSLOCK_TO_CONTROL KC_CAPSLOCK
  24. #define BOOTMAGIC_KEY_SWAP_LALT_LGUI KC_LALT
  25. #define BOOTMAGIC_KEY_SWAP_RALT_RGUI KC_RALT
  26. #define BOOTMAGIC_KEY_NO_GUI KC_LGUI
  27. #define BOOTMAGIC_KEY_SWAP_GRAVE_ESC KC_GRAVE
  28. #define BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE KC_BSLASH
  29. /*
  30. * change default layer
  31. */
  32. #define BOOTMAGIC_KEY_DEFAULT_LAYER_0 KC_0
  33. #define BOOTMAGIC_KEY_DEFAULT_LAYER_1 KC_1
  34. #define BOOTMAGIC_KEY_DEFAULT_LAYER_2 KC_2
  35. #define BOOTMAGIC_KEY_DEFAULT_LAYER_3 KC_3
  36. void bootmagic(void);
  37. bool bootmagic_scan_keycode(uint8_t keycode);
  38. #endif