MCPcopy Create free account
hub / github.com/DISTRHO/DPF / decodeCharacterString

Function decodeCharacterString

dgl/src/pugl-extra/wasm.c:225–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225static bool
226decodeCharacterString(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
239static EM_BOOL
240puglKeyCallback(const int eventType, const EmscriptenKeyboardEvent* const keyEvent, void* const userData)

Callers 1

puglKeyCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected