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.

115 lines
3.7 KiB

  1. /* Copyright 2021 Laneware Peripherals
  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. /* KEYMAP_numpad
  19. *
  20. * K00 K02K03
  21. *
  22. *
  23. * K10K11K12K13
  24. *
  25. * K20K21K22K23
  26. *
  27. * K30K31K32
  28. *
  29. * K40K41K42K43
  30. *
  31. * K50 K52
  32. *
  33. */
  34. #define LAYOUT_numpad( \
  35. K00, K02, K03, \
  36. K10, K11, K12, K13, \
  37. K20, K21, K22, K23, \
  38. K30, K31, K32, \
  39. K40, K41, K42, K43, \
  40. K50, K52 \
  41. ) { \
  42. { K00, KC_NO, K02, K03 }, \
  43. { K10, K11, K12, K13 }, \
  44. { K20, K21, K22, K23 }, \
  45. { K30, K31, K32, KC_NO }, \
  46. { K40, K41, K42, K43 }, \
  47. { K50, KC_NO, K52, KC_NO } \
  48. }
  49. /* KEYMAP_southpaw
  50. *
  51. * K00 K02K03
  52. *
  53. *
  54. * K10K11K12K13
  55. *
  56. * K20K21K22K23
  57. *
  58. * K31K32K33
  59. *
  60. * K40K41K42K43
  61. *
  62. * K51K52
  63. *
  64. */
  65. #define LAYOUT_southpaw( \
  66. K00, K02, K03, \
  67. K10, K11, K12, K13, \
  68. K20, K21, K22, K23, \
  69. K31, K32, K33, \
  70. K40, K41, K42, K43, \
  71. K51, K52 \
  72. ) { \
  73. { K00, KC_NO, K02, K03 }, \
  74. { K10, K11, K12, K13 }, \
  75. { K20, K21, K22, K23 }, \
  76. { KC_NO, K31, K32, K33 }, \
  77. { K40, K41, K42, K43 }, \
  78. { KC_NO, K51, K52, KC_NO } \
  79. }
  80. /* KEYMAP_macropad
  81. *
  82. * K00 K01K02
  83. *
  84. *
  85. * K10K11K12K13
  86. *
  87. * K20K21K22K23
  88. *
  89. * K30K31K32K33
  90. *
  91. * K40K41K42K43
  92. *
  93. * K50K51K52K53
  94. *
  95. */
  96. #define LAYOUT_macropad( \
  97. K00, K02, K03, \
  98. K10, K11, K12, K13, \
  99. K20, K21, K22, K23, \
  100. K30, K31, K32, K33, \
  101. K40, K41, K42, K43, \
  102. K50, K51, K52, K53 \
  103. ) { \
  104. { K00, KC_NO, K02, K03 }, \
  105. { K10, K11, K12, K13 }, \
  106. { K20, K21, K22, K23 }, \
  107. { K30, K31, K32, K33 }, \
  108. { K40, K41, K42, K43 }, \
  109. { K50, K51, K52, K53 } \
  110. }