map_keypads.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. #ifdef KEYPAD_LAYER_ENABLE
  15. # undef THUMBS_ARE
  16. # define THUMBS_ARE KEYPAD_LAYER_THUMBS
  17. # ifdef KEYPAD_BEAKL
  18. # ifdef KEYPAD_BEAKL_WI
  19. T_LAYER(LANG_N(_KEYPAD), ___KP_BKL_WI_3x10___),
  20. # else
  21. # ifdef KEYPAD_MODS
  22. T_LAYER(LANG_N(_KEYPAD), ___KP_BKL_MODS_3x10___),
  23. # else
  24. T_LAYER(LANG_N(_KEYPAD), ___KP_BKL_FUNC_3x10___),
  25. # endif
  26. # endif
  27. # else //not beakl
  28. # ifdef KEYPAD_MIRYOKU
  29. T_LAYER(LANG_N(_KEYPAD), ___KP_MIRYOKU_3x10___),
  30. # else
  31. # ifdef KEYPAD_RIGHT
  32. # ifdef KEYPAD_MODS
  33. T_LAYER(LANG_N(_KEYPAD), ___MODS_KP_3x10___),
  34. # else
  35. T_LAYER(LANG_N(_KEYPAD), ___FP_KP_3x10___),
  36. # endif
  37. # else // kp Left
  38. # ifdef KEYPAD_MODS
  39. T_LAYER(LANG_N(_KEYPAD), ___KP_MODS_3x10___),
  40. # else
  41. T_LAYER(LANG_N(_KEYPAD), ___KP_FP_3x10___),
  42. # endif
  43. # endif
  44. # endif
  45. # endif // not beakl
  46. #undef THUMBS_ARE
  47. #define THUMBS_ARE DEFAULT_THUMBS
  48. #endif
  49. #ifdef FUNC_LAYER_ENABLE
  50. # ifdef FUNCPAD_MIRYOKU
  51. T_LAYER(_FUN, ___FP_MIRYOKU_3x10___),
  52. # else
  53. T_LAYER(_FUN, ___FUN_3x10___),
  54. # endif
  55. #endif