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

Function onCharacterInput

src/CardinalUI.cpp:1051–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049 }
1050
1051 bool onCharacterInput(const CharacterInputEvent& ev) override
1052 {
1053 #ifdef DPF_RUNTIME_TESTING
1054 if (inSelfTest) return false;
1055 #endif
1056
1057 if (ev.character < ' ' || ev.character >= kKeyDelete)
1058 return false;
1059
1060 const int mods = glfwMods(ev.mod);
1061 const ScopedContext sc(this, mods);
1062 return context->event->handleText(lastMousePos, ev.character);
1063 }
1064
1065 bool onKeyboard(const KeyboardEvent& ev) override
1066 {

Callers

nothing calls this directly

Calls 1

glfwModsFunction · 0.70

Tested by

no test coverage detected