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.

35 lines
769 B

  1. #pragma once
  2. #include "quantum.h"
  3. // The first section contains all of the arguments
  4. // The second converts the arguments into a two-dimensional array
  5. #define LAYOUT_numpad_5x4( \
  6. k00, k01, k02, k03, \
  7. k10, k11, k12, \
  8. k20, k21, k22, k13, \
  9. k30, k31, k32, \
  10. k40, k41, k33 \
  11. ) \
  12. { \
  13. {k00, k01, k02, k03}, \
  14. {k10, k11, k12, k13}, \
  15. {k20, k21, k22, KC_NO}, \
  16. {k30, k31, k32, k33}, \
  17. {k40, KC_NO, k41, KC_NO} \
  18. }
  19. /* matrix layout
  20. * ,-------------------.
  21. * | 00 | 01 | 02 | 03 |
  22. * |----|----|----|----|
  23. * | 10 | 11 | 12 | |
  24. * |----|----|----| 13 |
  25. * | 20 | 21 | 22 | |
  26. * |----|----|----|----|
  27. * | 30 | 31 | 32 | |
  28. * |----|----|----| 33 |
  29. * | 40 | 41 | |
  30. * `-------------------'
  31. */