| 218 | } |
| 219 | |
| 220 | void enqueueText(const char* text) |
| 221 | { |
| 222 | using namespace Localisation; |
| 223 | |
| 224 | if (text == nullptr || text[0] == '\0') |
| 225 | { |
| 226 | return; |
| 227 | } |
| 228 | |
| 229 | uint32_t index = _keyQueueLastWrite; |
| 230 | auto unsignedText = reinterpret_cast<const uint8_t*>(text); |
| 231 | _keyQueue[index].charCode = convertUnicodeToLoco(readCodePoint(&unsignedText)); |
| 232 | } |
| 233 | |
| 234 | // 0x00407028 |
| 235 | static std::optional<Key> getNextKey() |
no test coverage detected