redscarf_i.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /* Copyright 2019 Ben Weakley
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "quantum.h"
  18. #define LAYOUT_ortho_6x4( \
  19. k00, k01, k02, k03, \
  20. k10, k11, k12, k13, \
  21. k20, k21, k22, k23, \
  22. k30, k31, k32, k33, \
  23. k40, k41, k42, k43, \
  24. k50, k51, k52, k53 \
  25. ) \
  26. { \
  27. { k00, k01, k02, k03 }, \
  28. { k10, k11, k12, k13 }, \
  29. { k20, k21, k22, k23 }, \
  30. { k30, k31, k32, k33 }, \
  31. { k40, k41, k42, k43 }, \
  32. { k50, k51, k52, k53 } \
  33. }
  34. #define LAYOUT_ortho_5x4( \
  35. k00, k01, k02, k03, \
  36. k10, k11, k12, k13, \
  37. k20, k21, k22, k23, \
  38. k30, k31, k32, k33, \
  39. k40, k41, k42, k43 \
  40. ) \
  41. { \
  42. { k00, k01, k02, k03 }, \
  43. { k10, k11, k12, k13 }, \
  44. { k20, k21, k22, k23 }, \
  45. { k30, k31, k32, k33 }, \
  46. { k40, k41, k42, k43 }, \
  47. { KC_NO, KC_NO, KC_NO, KC_NO } \
  48. }
  49. #define LAYOUT_numpad_6x4( \
  50. k00, k01, k02, k03, \
  51. k10, k11, k12, k13, \
  52. k20, k21, k22, \
  53. k30, k31, k32, k23, \
  54. k40, k41, k42, \
  55. k50, k52, k43 \
  56. ) \
  57. { \
  58. { k00, k01, k02, k03 }, \
  59. { k10, k11, k12, k13 }, \
  60. { k20, k21, k22, k23 }, \
  61. { k30, k31, k32, KC_NO }, \
  62. { k40, k41, k42, k43 }, \
  63. { k50, KC_NO, k52, KC_NO } \
  64. }
  65. #define LAYOUT_numpad_5x4( \
  66. k00, k01, k02, k03, \
  67. k10, k11, k12, \
  68. k20, k21, k22, k13, \
  69. k30, k31, k32, \
  70. k40, k42, k33 \
  71. ) \
  72. { \
  73. { k00, k01, k02, k03 }, \
  74. { k10, k11, k12, k13 }, \
  75. { k20, k21, k22, KC_NO }, \
  76. { k30, k31, k32, k33 }, \
  77. { k40, KC_NO, k42, KC_NO }, \
  78. { KC_NO, KC_NO, KC_NO, KC_NO } \
  79. }