right.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* Copyright 2018 Yiancar
  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. #ifndef RIGHT_H
  17. #define RIGHT_H
  18. #include "quantum.h"
  19. #define XXX KC_NO
  20. // This a shortcut to help you visually see your layout.
  21. // The first section contains all of the arguments
  22. // The second converts the arguments into a two-dimensional array
  23. #define LAYOUT_ansi( \
  24. K01, K02, K03, K04, K05, K06, K07, \
  25. K10, K11, K12, K13, K14, K15, K16, K17, \
  26. K20, K21, K22, K23, K24, K25, K27, \
  27. K30, K31, K32, K33, K34, K37, \
  28. K40, K41, K42, K43, K44, K45 \
  29. ) \
  30. { \
  31. { XXX, K01, K02, K03, K04, K05, K06, K07 }, \
  32. { K10, K11, K12, K13, K14, K15, K16, K17 }, \
  33. { K20, K21, K22, K23, K24, K25, XXX, K27 }, \
  34. { K30, K31, K32, K33, K34, XXX, XXX, K37 }, \
  35. { K40, K41, K42, K43, K44, K45, XXX, XXX } \
  36. }
  37. #define LAYOUT_iso( \
  38. K01, K02, K03, K04, K05, K06, K07, \
  39. K10, K11, K12, K13, K14, K15, K16, \
  40. K20, K21, K22, K23, K24, K25, K26, K27, \
  41. K30, K31, K32, K33, K34, K37, \
  42. K40, K41, K42, K43, K44, K45 \
  43. ) \
  44. { \
  45. { XXX, K01, K02, K03, K04, K05, K06, K07 }, \
  46. { K10, K11, K12, K13, K14, K15, K16, XXX }, \
  47. { K20, K21, K22, K23, K24, K25, K26, K27 }, \
  48. { K30, K31, K32, K33, K34, XXX, XXX, K37 }, \
  49. { K40, K41, K42, K43, K44, K45, XXX, XXX } \
  50. }
  51. #define LAYOUT_hhkb_ansi( \
  52. K01, K02, K03, K04, K05, K06, K07, K00, \
  53. K10, K11, K12, K13, K14, K15, K16, K17, \
  54. K20, K21, K22, K23, K24, K25, K27, \
  55. K30, K31, K32, K33, K34, K36, K37, \
  56. K40, K41, K42, K43, K44, K45 \
  57. ) \
  58. { \
  59. { K00, K01, K02, K03, K04, K05, K06, K07 }, \
  60. { K10, K11, K12, K13, K14, K15, K16, K17 }, \
  61. { K20, K21, K22, K23, K24, K25, XXX, K27 }, \
  62. { K30, K31, K32, K33, K34, XXX, K36, K37 }, \
  63. { K40, K41, K42, K43, K44, K45, XXX, XXX } \
  64. }
  65. #define LAYOUT_hhkb_iso( \
  66. K01, K02, K03, K04, K05, K06, K07, K00, \
  67. K10, K11, K12, K13, K14, K15, K16, \
  68. K20, K21, K22, K23, K24, K25, K26, K27, \
  69. K30, K31, K32, K33, K34, K36, K37, \
  70. K40, K41, K42, K43, K44, K45 \
  71. ) \
  72. { \
  73. { K00, K01, K02, K03, K04, K05, K06, K07 }, \
  74. { K10, K11, K12, K13, K14, K15, K16, XXX }, \
  75. { K20, K21, K22, K23, K24, K25, K26, K27 }, \
  76. { K30, K31, K32, K33, K34, XXX, K36, K37 }, \
  77. { K40, K41, K42, K43, K44, K45, XXX, XXX } \
  78. }
  79. #endif