bb-macro.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /* Copyright 2021 Batuhan Başerdem
  2. * <baserdem.batuhan@gmail.com> @bbaserdem
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "bbaserdem.h"
  19. /* This header file contains definitons regarding custom keycodes.
  20. * - Both regular and unicode macros are dealt with in this file
  21. */
  22. // These will be delegated to keymap specific stuff (weak definition)
  23. bool process_record_macro(uint16_t keycode, keyrecord_t *record);
  24. // Unicodemap implementation
  25. #ifdef UNICODEMAP_ENABLE
  26. enum userspace_unicodemap {
  27. UPC_A_CIRC,
  28. UPC_C_CEDI,
  29. UPC_G_BREV,
  30. UPC_I_CIRC,
  31. UPC_I_DOTL,
  32. UPC_I_DOTT,
  33. UPC_O_DIAE,
  34. UPC_S_CEDI,
  35. UPC_U_CIRC,
  36. UPC_U_DIAE,
  37. LOW_A_CIRC,
  38. LOW_C_CEDI,
  39. LOW_G_BREV,
  40. LOW_I_CIRC,
  41. LOW_I_DOTL,
  42. LOW_I_DOTT,
  43. LOW_O_DIAE,
  44. LOW_S_CEDI,
  45. LOW_U_CIRC,
  46. LOW_U_DIAE,
  47. ELLIPSIS,
  48. PLANCK_CON,
  49. ANGSTROM,
  50. MATHPI,
  51. BITCOIN,
  52. UPC_ALPHA,
  53. UPC_BETA,
  54. UPC_GAMMA,
  55. UPC_DELTA,
  56. UPC_EPSILON,
  57. UPC_ZETA,
  58. UPC_ETA,
  59. UPC_THETA,
  60. UPC_IOTA,
  61. UPC_KAPPA,
  62. UPC_LAMBDA,
  63. UPC_MU,
  64. UPC_NU,
  65. UPC_XI,
  66. UPC_OMICRON,
  67. UPC_PI,
  68. UPC_RHO,
  69. UPC_SIGMA,
  70. UPC_TAU,
  71. UPC_UPSILON,
  72. UPC_PHI,
  73. UPC_CHI,
  74. UPC_PSI,
  75. UPC_OMEGA,
  76. LOW_ALPHA,
  77. LOW_BETA,
  78. LOW_GAMMA,
  79. LOW_DELTA,
  80. LOW_EPSILON,
  81. LOW_ZETA,
  82. LOW_ETA,
  83. LOW_THETA,
  84. LOW_IOTA,
  85. LOW_KAPPA,
  86. LOW_LAMBDA,
  87. LOW_MU,
  88. LOW_NU,
  89. LOW_XI,
  90. LOW_OMICRON,
  91. LOW_PI,
  92. LOW_RHO,
  93. LOW_SIGMA,
  94. LOW_TAU,
  95. LOW_UPSILON,
  96. LOW_PHI,
  97. LOW_CHI,
  98. LOW_PSI,
  99. LOW_OMEGA,
  100. };
  101. #endif // UNICODEMAP_ENABLE
  102. // Tap dance stuff
  103. #ifdef AUDIO_ENABLE
  104. #ifdef TAP_DANCE_ENABLE
  105. enum {
  106. TD_AUDIO_TEMPO,
  107. };
  108. #endif // AUDIO_ENABLE
  109. #endif // TAP_DANCE_ENABLE