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.

75 lines
2.1 KiB

  1. /* Copyright 2019 codybender
  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. #pragma once
  17. #include "quantum.h"
  18. /* maypad numpad layout
  19. * .-------------------.
  20. * |NLCK| /| *| -|
  21. * |-------------------|
  22. * | 7| 8| 9| |
  23. * |--------------| |
  24. * | 4| 5| 6| +|
  25. * |-------------------|
  26. * | 1| 2| 3| |
  27. * |--------------| |
  28. * | 0| .| Ent|
  29. * '-------------------'
  30. */
  31. // The first section contains all of the arguments
  32. // The second converts the arguments into a two-dimensional array
  33. #define LAYOUT_numpad_5x4( \
  34. k00, k01, k02, k03, \
  35. k10, k11, k12, \
  36. k20, k21, k22, k23, \
  37. k30, k31, k32, \
  38. k41, k42, k43 \
  39. ) { \
  40. { k00, k01, k02, k03 }, \
  41. { k10, k11, k12, KC_NO }, \
  42. { k20, k21, k22, k23 }, \
  43. { k30, k31, k32, KC_NO }, \
  44. { KC_NO, k41, k42, k43 } \
  45. }
  46. #define LAYOUT_numpad_5x4_split_plus( \
  47. k00, k01, k02, k03, \
  48. k10, k11, k12, k13, \
  49. k20, k21, k22, k23, \
  50. k30, k31, k32, \
  51. k41, k42, k43 \
  52. ) { \
  53. { k00, k01, k02, k03 }, \
  54. { k10, k11, k12, k13 }, \
  55. { k20, k21, k22, k23 }, \
  56. { k30, k31, k32, KC_NO }, \
  57. { KC_NO, k41, k42, k43 } \
  58. }
  59. #define LAYOUT_ortho_5x4( \
  60. k00, k01, k02, k03, \
  61. k10, k11, k12, k13, \
  62. k20, k21, k22, k23, \
  63. k30, k31, k32, k33, \
  64. k40, k41, k42, k43 \
  65. ) { \
  66. { k00, k01, k02, k03 }, \
  67. { k10, k11, k12, k13 }, \
  68. { k20, k21, k22, k23 }, \
  69. { k30, k31, k32, k33 }, \
  70. { k40, k41, k42, k43 } \
  71. }