cluepad.h 832 B

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