| 223 | } |
| 224 | |
| 225 | static bool |
| 226 | decodeCharacterString(const unsigned long keyCode, |
| 227 | const EM_UTF8 key[EM_HTML5_SHORT_STRING_LEN_BYTES], |
| 228 | char str[8]) |
| 229 | { |
| 230 | if (key[1] == 0) |
| 231 | { |
| 232 | str[0] = key[0]; |
| 233 | return true; |
| 234 | } |
| 235 | |
| 236 | return false; |
| 237 | } |
| 238 | |
| 239 | static EM_BOOL |
| 240 | puglKeyCallback(const int eventType, const EmscriptenKeyboardEvent* const keyEvent, void* const userData) |