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

Method onSelectText

plugins/Cardinal/src/ImGuiWidget.cpp:422–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void ImGuiWidget::onSelectText(const SelectTextEvent& e)
423{
424 ImGui::SetCurrentContext(imData->context);
425
426 ImGuiIO& io(ImGui::GetIO());
427 io.AddInputCharacter(e.codepoint);
428
429 if (io.WantCaptureKeyboard)
430 e.consume(this);
431}
432
433void ImGuiWidget::step()
434{

Callers

nothing calls this directly

Calls 1

AddInputCharacterMethod · 0.80

Tested by

no test coverage detected