MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / onCharacterInput

Method onCharacterInput

src/CardinalRemote/RemoteUI.cpp:291–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291bool CardinalRemoteUI::onCharacterInput(const CharacterInputEvent& ev)
292{
293 if (ev.character < ' ' || ev.character >= kKeyDelete)
294 return false;
295
296 const int mods = glfwMods(ev.mod);
297
298 CardinalPluginContext* context = static_cast<CardinalPluginContext*>(rack::contextGet());
299 const ScopedContext sc(context, mods);
300 return context->event->handleText(lastMousePos, ev.character);
301}
302
303bool CardinalRemoteUI::onKeyboard(const KeyboardEvent& ev)
304{

Callers

nothing calls this directly

Calls 2

glfwModsFunction · 0.70
contextGetFunction · 0.50

Tested by

no test coverage detected