u4rgb6.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
  2. * Copyright 2021 Simon Arlott
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "quantum.h"
  19. #define XXX KC_NO
  20. #define LAYOUT_ortho_6x4( \
  21. k00, k10, k20, k30, \
  22. k01, k11, k21, k31, \
  23. k02, k12, k22, k32, \
  24. k03, k13, k23, k33, \
  25. k04, k14, k24, k34, \
  26. k05, k15, k25, k35 \
  27. ) { \
  28. { k00, k10, k20, k30 }, \
  29. { k01, k11, k21, k31 }, \
  30. { k02, k12, k22, k32 }, \
  31. { k03, k13, k23, k33 }, \
  32. { k04, k14, k24, k34 }, \
  33. { k05, k15, k25, k35 } \
  34. }
  35. #define LAYOUT_ortho_4x6_right( \
  36. k00, k01, k02, k03, k04, k05, \
  37. k10, k11, k12, k13, k14, k15, \
  38. k20, k21, k22, k23, k24, k25, \
  39. k30, k31, k32, k33, k34, k35 \
  40. ) { \
  41. { k05, k15, k25, k35 }, \
  42. { k04, k14, k24, k34 }, \
  43. { k03, k13, k23, k33 }, \
  44. { k02, k12, k22, k32 }, \
  45. { k01, k11, k21, k31 }, \
  46. { k00, k10, k20, k30 } \
  47. }
  48. #define LAYOUT_ortho_4x6_left( \
  49. k00, k01, k02, k03, k04, k05, \
  50. k10, k11, k12, k13, k14, k15, \
  51. k20, k21, k22, k23, k24, k25, \
  52. k30, k31, k32, k33, k34, k35 \
  53. ) { \
  54. { k30, k20, k10, k00 }, \
  55. { k31, k21, k11, k01 }, \
  56. { k32, k22, k12, k02 }, \
  57. { k33, k23, k13, k03 }, \
  58. { k34, k24, k14, k04 }, \
  59. { k35, k25, k15, k05 } \
  60. }
  61. #define LAYOUT_numpad_6x4( \
  62. k00, k10, k20, k30, \
  63. k01, k11, k21, k31, \
  64. k02, k12, k22, \
  65. k03, k13, k23, k33, \
  66. k04, k14, k24, \
  67. k15, k25, k35 \
  68. ) { \
  69. { k00, k10, k20, k30 }, \
  70. { k01, k11, k21, k31 }, \
  71. { k02, k12, k22, XXX }, \
  72. { k03, k13, k23, k33 }, \
  73. { k04, k14, k24, XXX }, \
  74. { XXX, k15, k25, k35 } \
  75. }