MCPcopy Create free account
hub / github.com/MihailRis/voxelcore / l_keycode

Function l_keycode

src/logic/scripting/lua/libinput.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace scripting;
15
16static int l_keycode(lua::State* L) {
17 auto name = lua::require_string(L, 1);
18 return lua::pushinteger(L, static_cast<int>(input_util::keycode_from(name)));
19}
20
21static int l_mousecode(lua::State* L) {
22 auto name = lua::require_string(L, 1);

Callers

nothing calls this directly

Calls 2

require_stringFunction · 0.85
pushintegerFunction · 0.85

Tested by

no test coverage detected