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.

82 lines
5.9 KiB

  1. /*
  2. Copyright 2020 <contact@vwolf.be>
  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. #pragma once
  15. #include "quantum.h"
  16. /* LAYOUT
  17. *
  18. * 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e
  19. *
  20. * 10 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e
  21. *
  22. * 20 22 23 24 25 26 27 28 29 2a 2b 2c 2d
  23. *
  24. * 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e
  25. *
  26. * 40 41 42 44 46 48 4a 4b 4c 4d 4e
  27. *
  28. */
  29. #define LAYOUT( \
  30. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, K0c, K0d, K0e, \
  31. K10, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, K1c, K1d, K1e, \
  32. K20, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, K2c, K2d, \
  33. K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d, K3e, \
  34. K40, K41, K42, K44, K46, K48, K4a, K4b, K4c, K4d, K4e \
  35. ) { \
  36. { K00, K02, K04, K06, K08, K0a, K0c, K0d }, \
  37. { K01, K03, K05, K07, K09, K0b, KC_NO, K0e }, \
  38. { K10, K12, K14, K16, K18, K1a, K1c, K1d }, \
  39. { KC_NO, K13, K15, K17, K19, K1b, KC_NO, K1e }, \
  40. { K20, K22, K24, K26, K28, K2a, K2c, K2d }, \
  41. { KC_NO, K23, K25, K27, K29, K2b, KC_NO, K2e }, \
  42. { K30, K32, K34, K36, K38, K3a, K3c, K3d }, \
  43. { K31, K33, K35, K37, K39, K3b, KC_NO, K3e }, \
  44. { K40, K42, K44, K46, K48, K4a, K4c, K4d }, \
  45. { K41, KC_NO, KC_NO, KC_NO, KC_NO, K4b, KC_NO, K4e } \
  46. }
  47. /* LAYOUT_60_ansi
  48. *
  49. * 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0e
  50. *
  51. * 10 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e
  52. *
  53. * 20 22 23 24 25 26 27 28 29 2a 2b 2c 2d
  54. *
  55. * 30 32 33 34 35 36 37 38 39 3a 3b 3d
  56. *
  57. * 40 41 42 46 4a 4b 4d 4e
  58. *
  59. */
  60. #define LAYOUT_60_ansi( \
  61. K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, K0c, K0e, \
  62. K10, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, K1c, K1d, K1e, \
  63. K20, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, K2c, K2d, \
  64. K30, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3d, \
  65. K40, K41, K42, K46, K4a, K4b, K4d, K4e \
  66. ) { \
  67. { K00, K02, K04, K06, K08, K0a, K0c, K0e }, \
  68. { K01, K03, K05, K07, K09, K0b, KC_NO, KC_NO }, \
  69. { K10, K12, K14, K16, K18, K1a, K1c, K1d }, \
  70. { KC_NO, K13, K15, K17, K19, K1b, KC_NO, K1e }, \
  71. { K20, K22, K24, K26, K28, K2a, K2c, KC_NO }, \
  72. { KC_NO, K23, K25, K27, K29, K2b, KC_NO, K2d }, \
  73. { K30, K32, K34, K36, K38, K3a, KC_NO, K3d }, \
  74. { KC_NO, K33, K35, K37, K39, K3b, KC_NO, KC_NO }, \
  75. { K40, K42, KC_NO, K46, KC_NO, K4a, KC_NO, K4d }, \
  76. { K41, KC_NO, KC_NO, KC_NO, KC_NO, K4b, KC_NO, K4e } \
  77. }