logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

unicodemap.h (958B)


  1. // Copyright 2023 QMK
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <stdint.h>
  5. #include "progmem.h"
  6. /**
  7. * \file
  8. *
  9. * \defgroup unicodemap Unicode Map
  10. * \{
  11. */
  12. extern const uint32_t unicode_map[] PROGMEM;
  13. /**
  14. * \brief Get the index into the `unicode_map` array for the given keycode, respecting shift state for pair keycodes.
  15. *
  16. * \param keycode The Unicode Map keycode to get the index of.
  17. *
  18. * \return An index into the `unicode_map` array.
  19. */
  20. uint8_t unicodemap_index(uint16_t keycode);
  21. /**
  22. * \brief Get the code point for the given index in the `unicode_map` array.
  23. *
  24. * \param index The index into the `unicode_map` array.
  25. *
  26. * \return A Unicode code point value.
  27. */
  28. uint32_t unicodemap_get_code_point(uint8_t index);
  29. /**
  30. * \brief Send the code point for the given index in the `unicode_map` array.
  31. *
  32. * \param index The index into the `unicode_map` array.
  33. */
  34. void register_unicodemap(uint8_t index);
  35. /** \} */