MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / onTextInput

Method onTextInput

src/ui/Hud.cpp:191–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191void UI::Hud::onTextInput(const std::string& text)
192{
193 if (m_Engine.getConsole().isOpen())
194 m_Engine.getConsole().onTextInput(text);
195 else if (!m_MenuChain.empty())
196 m_MenuChain.back()->onTextInput(text);
197}
198
199void UI::Hud::setupKeyBindings() {
200

Callers

nothing calls this directly

Calls 3

isOpenMethod · 0.80
backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected