MCPcopy Create free account
hub / github.com/DFHack/dfhack / feed

Method feed

library/modules/Screen.cpp:1097–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095}
1096
1097void dfhack_lua_viewscreen::feed(std::set<df::interface_key> *keys)
1098{
1099 if (Screen::isDismissed(this)) return;
1100
1101 lua_pushlightuserdata(DFHack::Core::getInstance().getLuaState(), keys);
1102 safe_call_lua(do_input, 1, 0);
1103 df::global::enabler->last_text_input[0] = '\0';
1104}
1105
1106void dfhack_lua_viewscreen::onShow()
1107{

Callers 1

screen_doSimulateInputFunction · 0.45

Calls 1

lua_pushlightuserdataFunction · 0.85

Tested by

no test coverage detected