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.

61 lines
1.7 KiB

  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 CU24_H
  17. #define CU24_H
  18. #include "quantum.h"
  19. // This a shortcut to help you visually see your layout.
  20. // The following is an example using the Planck MIT layout
  21. // The first section contains all of the arguments
  22. // The second converts the arguments into a two-dimensional array
  23. #define LAYOUT_grid( \
  24. k00, k01, k02, k03, \
  25. k10, k11, k12, k13, \
  26. k20, k21, k22, k23, \
  27. k30, k31, k32, k33, \
  28. k40, k41, k42, k43, \
  29. k50, k51, k52, k53 \
  30. ) \
  31. { \
  32. { k00, k01, k02, k03 }, \
  33. { k10, k11, k12, k13 }, \
  34. { k20, k21, k22, k23 }, \
  35. { k30, k31, k32, k33 }, \
  36. { k40, k41, k42, k43 }, \
  37. { k50, k51, k52, k53 } \
  38. }
  39. #define LAYOUT_numpad( \
  40. k00, k01, k02, k03, \
  41. k10, k11, k12, k13, \
  42. k20, k21, k22, k23, \
  43. k30, k31, k32, \
  44. k40, k41, k42, k43, \
  45. k51, k52 \
  46. ) \
  47. { \
  48. { k00, k01, k02, k03 }, \
  49. { k10, k11, k12, k13 }, \
  50. { k20, k21, k22, k23 }, \
  51. { k30, k31, k32, KC_NO }, \
  52. { k40, k41, k42, k43 }, \
  53. { KC_NO, k51, k52, KC_NO } \
  54. }
  55. #endif