| 289 | } |
| 290 | |
| 291 | bool 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 | |
| 303 | bool CardinalRemoteUI::onKeyboard(const KeyboardEvent& ev) |
| 304 | { |
nothing calls this directly
no test coverage detected