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

Function hotkey_getKeybindingInput

library/LuaApi.cpp:1896–1906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1894}
1895
1896static int hotkey_getKeybindingInput(lua_State *L) {
1897 auto hotkey_mgr = Core::getInstance().getHotkeyManager();
1898 auto input = hotkey_mgr->getKeybindingInput();
1899
1900 if (input.empty()) {
1901 lua_pushnil(L);
1902 } else {
1903 lua_pushlstring(L, input.data(), input.size());
1904 }
1905 return 1;
1906}
1907
1908static int hotkey_removeKeybind(lua_State *L) {
1909 auto hotkey_mgr = Core::getInstance().getHotkeyManager();

Callers

nothing calls this directly

Calls 6

lua_pushnilFunction · 0.85
lua_pushlstringFunction · 0.85
getKeybindingInputMethod · 0.80
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected