map_funcs.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. Copyright 2022 Eric Gebhart <e.a.gebhart@gmail.com>
  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. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. // navigation. Mouse keys, arrows, home,end, etc.
  15. #ifdef NAV_LAYER_ENABLE
  16. # ifdef MOUSEKEY_ENABLE
  17. # undef THUMBS_ARE
  18. # define THUMBS_ARE MOUSE_LAYER_THUMBS
  19. # ifdef NAV_FULL_LOCK_MODS
  20. T_LAYER(_NAV, ___NAVA_3x10___),
  21. # endif
  22. # ifdef NAV_FULL
  23. T_LAYER(_NAV, ___NAV_3x10___),
  24. # endif
  25. # ifdef NAV_NO_MOUSE
  26. T_LAYER(_NAV, ___NAVnm_3x10___),
  27. T_LAYER(_NAVm, ___NAVm_3x10___),
  28. # endif
  29. // give a default
  30. # if !defined(NAV_FULL) && \
  31. !defined(NAV_NO_MOUSE) && \
  32. !defined(NAV_FULL_LOCK_MODS) \
  33. T_LAYER(_NAV, ___NAVA_3x10___),
  34. # endif
  35. # ifdef MOUSE_LAYER_ENABLE
  36. T_LAYER(_NAVm, ___NAVm_3x10___),
  37. # endif
  38. # undef THUMBS_ARE
  39. # define THUMBS_ARE DEFAULT_THUMBS
  40. # else // no mouse enable.
  41. T_LAYER(_NAV, ___NAVnm_3x10___),
  42. # endif // mousekey end.
  43. #endif //nav end.
  44. #ifdef MEDIA_LAYER_ENABLE
  45. #undef THUMBS_ARE
  46. #define THUMBS_ARE MEDIA_LAYER_THUMBS
  47. T_LAYER(_MEDIA, ___MEDIA_3x10___),
  48. #undef THUMBS_ARE
  49. #define THUMBS_ARE DEFAULT_THUMBS
  50. #endif
  51. #ifdef FUN_LAYER_ENABLE
  52. #ifdef FUNCPAD_MIRYOKU_ENABLE
  53. T_LAYER(_FUN, ___FUN_3x10___),
  54. #else
  55. T_LAYER(_FUN, ___FUN_MIRYOKU_3x10___),
  56. #endif
  57. #endif
  58. // A layer for layers. to set the default, etc.
  59. T_LAYER(_LAYERS, ___LAYERS_3x10___),
  60. // control the RGB if there are any.
  61. #ifdef RGB_LAYER_ENABLE
  62. T_LAYER(_RGB, ___RGB_3x10___),
  63. #endif
  64. // control and adjust stuff.
  65. #ifdef ADJUST_LAYER_ENABLE
  66. T_LAYER(_ADJUST, ___ADJUST_3x10___),
  67. #endif
  68. // put the combo reference layers at the end.
  69. #ifdef COMBO_REF_LAYER_ENABLE
  70. #undef LANG_IS
  71. #define LANG_IS COMBO
  72. #undef EDGE_KEY_SET_IS
  73. #define EDGE_KEY_SET_IS REF1
  74. #undef THUMBS_ARE
  75. #define THUMBS_ARE COMBO
  76. #undef MODS_ARE
  77. #define MODS_ARE TRNS
  78. B_LAYER(_COMBO_REF, ___10_NUMBERS___, ___COMBO_REF___),
  79. #undef LANG_IS
  80. #define LANG_IS DEFAULT_LANG
  81. #undef EDGE_KEY_SET_IS
  82. #define EDGE_KEY_SET_IS DEFAULT_EDGE_SET
  83. #undef THUMBS_ARE
  84. #define THUMBS_ARE DEFAULT_THUMBS
  85. #undef MODS_ARE
  86. #define MODS_ARE DEFAULT_MODS
  87. #endif
  88. #ifdef COMBO_REF_LAYER_TWO_ENABLE
  89. #undef LANG_IS
  90. #define LANG_IS COMBO2
  91. #undef EDGE_KEY_SET_IS
  92. #define EDGE_KEY_SET_IS REF2
  93. #undef THUMBS_ARE
  94. #define THUMBS_ARE COMBO2
  95. #undef MODS_ARE
  96. #define MODS_ARE TRNS
  97. B_LAYER(_COMBO_REF2, ___10_NUMBERS___, ___COMBO_REF___),
  98. #undef LANG_IS
  99. #define LANG_IS DEFAULT_LANG
  100. #undef EDGE_KEY_SET_IS
  101. #define EDGE_KEY_SET_IS DEFAULT_EDGE_SET
  102. #undef THUMBS_ARE
  103. #define THUMBS_ARE DEFAULT_THUMBS
  104. #undef MODS_ARE
  105. #define MODS_ARE DEFAULT_MODS
  106. #endif