keymap.c 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. Copyright 2020 Constantine Chen @csc027
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #include QMK_KEYBOARD_H
  15. #include "csc027.h"
  16. #define LAYOUT_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__)
  17. const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  18. [_QW] = LAYOUT_wrapper(
  19. _____________________QWERTY_L1_____________________, _____________________QWERTY_R1_____________________,
  20. _____________________QWERTY_L2_____________________, _____________________QWERTY_R2_____________________,
  21. _____________________QWERTY_L3_____________________, _____________________QWERTY_R3_____________________,
  22. _____________________QWERTY_L4_____________________, _____________________QWERTY_R4_____________________
  23. ),
  24. [_RS] = LAYOUT_wrapper(
  25. ______________________RAISE_L1_____________________, ______________________RAISE_R1_____________________,
  26. ______________________RAISE_L2_____________________, ______________________RAISE_R2_____________________,
  27. ______________________RAISE_L3_____________________, ______________________RAISE_R3_____________________,
  28. ______________________RAISE_L4_____________________, ______________________RAISE_R4_____________________
  29. ),
  30. [_LW] = LAYOUT_wrapper(
  31. ______________________LOWER_L1_____________________, ______________________LOWER_R1_____________________,
  32. ______________________LOWER_L2_____________________, ______________________LOWER_R2_____________________,
  33. ______________________LOWER_L3_____________________, ______________________LOWER_R3_____________________,
  34. ______________________LOWER_L4_____________________, ______________________LOWER_R4_____________________
  35. ),
  36. [_MS] = LAYOUT_wrapper(
  37. ______________________MOUSE_L1_____________________, ______________________MOUSE_R1_____________________,
  38. ______________________MOUSE_L2_____________________, ______________________MOUSE_R2_____________________,
  39. ______________________MOUSE_L3_____________________, ______________________MOUSE_R3_____________________,
  40. ______________________MOUSE_L4_____________________, ______________________MOUSE_R4_____________________
  41. ),
  42. [_WT] = LAYOUT_wrapper(
  43. ________________WINDOWS_TERMINAL_L1________________, ________________WINDOWS_TERMINAL_R1________________,
  44. ________________WINDOWS_TERMINAL_L2________________, ________________WINDOWS_TERMINAL_R2________________,
  45. ________________WINDOWS_TERMINAL_L3________________, ________________WINDOWS_TERMINAL_R3________________,
  46. ________________WINDOWS_TERMINAL_L4________________, ________________WINDOWS_TERMINAL_R4________________
  47. ),
  48. [_CN] = LAYOUT_wrapper(
  49. ___________________CONVENIENCE_L1__________________, ___________________CONVENIENCE_R1__________________,
  50. ___________________CONVENIENCE_L2__________________, ___________________CONVENIENCE_R2__________________,
  51. ___________________CONVENIENCE_L3__________________, ___________________CONVENIENCE_R3__________________,
  52. ___________________CONVENIENCE_L4__________________, ___________________CONVENIENCE_R4__________________
  53. ),
  54. [_GG] = LAYOUT_wrapper(
  55. ________________General_Game_4x12_L1_______________, ________________General_Game_4x12_R1_______________,
  56. ________________General_Game_4x12_L2_______________, ________________General_Game_4x12_R2_______________,
  57. ________________General_Game_4x12_L3_______________, ________________General_Game_4x12_R3_______________,
  58. ________________General_Game_4x12_L4_______________, ________________General_Game_4x12_R4_______________
  59. ),
  60. [_CS] = LAYOUT_wrapper(
  61. ___________________CSGO_4x12_L1____________________, ___________________CSGO_4x12_R1____________________,
  62. ___________________CSGO_4x12_L2____________________, ___________________CSGO_4x12_R2____________________,
  63. ___________________CSGO_4x12_L3____________________, ___________________CSGO_4x12_R3____________________,
  64. ___________________CSGO_4x12_L4____________________, ___________________CSGO_4x12_R4____________________
  65. )
  66. };