cluepad.h 793 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef CLUEPAD_H
  2. #define CLUEPAD_H
  3. #include "quantum.h"
  4. /* Cluepad matrix layout
  5. * .-------------------.
  6. * |NLCK| /| *| -|
  7. * |-------------------|
  8. * | 7| 8| 9| |
  9. * |--------------| |
  10. * | 4| 5| 6| +|
  11. * |-------------------|
  12. * | 1| 2| 3| |
  13. * |--------------| |
  14. * | 0| .| Ent|
  15. * '-------------------'
  16. */
  17. // The first section contains all of the arguments
  18. // The second converts the arguments into a two-dimensional array
  19. #define KEYMAP( \
  20. k00, k01, k02, k03, \
  21. k10, k11, k12, k13, \
  22. k20, k21, k22, \
  23. k30, k31, k32, k33, \
  24. k40, k42 \
  25. ) { \
  26. { k00, k01, k02, k03, }, \
  27. { k10, k11, k12, k13, }, \
  28. { k20, k21, k22, KC_NO, }, \
  29. { k30, k31, k32, k33, }, \
  30. { k40, KC_NO, k42, KC_NO } \
  31. }
  32. #endif