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.

82 lines
1.6 KiB

  1. /*
  2. Copyright 2020 rupa <rupa@lrrr.us> @rupa
  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. #pragma once
  15. #include QMK_KEYBOARD_H
  16. #include "version.h"
  17. #include "process_records.h"
  18. #include "unicode.h"
  19. #include "wrappers.h"
  20. enum userspace_layers {
  21. _QWERTY = 0,
  22. _LOWER,
  23. _RAISE,
  24. _ADJUST
  25. };
  26. enum userspace_custom_keycodes {
  27. VRSN = SAFE_RANGE,
  28. BUGS,
  29. CATS,
  30. DANCE,
  31. DICE,
  32. DOMO,
  33. FART,
  34. FLIP,
  35. HUGS,
  36. JOY,
  37. KISS,
  38. LOD,
  39. MUSIC,
  40. RNDM,
  41. RUPA,
  42. SHRUG,
  43. TADA,
  44. U_FRACT,
  45. U_ITALI,
  46. U_MONOS,
  47. U_NORML,
  48. U_SANSI,
  49. U_SANSN,
  50. U_SCRPT,
  51. WAT,
  52. YUNO,
  53. ZALGO,
  54. ZZZZZ,
  55. NEXT_SAFE_RANGE
  56. };
  57. enum userspace_font_choices {
  58. F_FRACT = 0,
  59. F_ITALI,
  60. F_MONOS,
  61. F_NORML,
  62. F_SANSI,
  63. F_SANSN,
  64. F_SCRPT
  65. };
  66. typedef struct font_t {
  67. uint32_t upper_alpha;
  68. uint32_t lower_alpha;
  69. uint32_t zero_glyph;
  70. } font_t;
  71. const font_t* get_script_mode(void);
  72. bool set_script_mode(int fc);
  73. bool script_mode_translate(bool is_shifted, uint32_t keycode);