MCPcopy Create free account
hub / github.com/DavidColson/Polybox / LuaGetMousePosition

Function LuaGetMousePosition

source/bind_input.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36// ***********************************************************************
37
38int LuaGetMousePosition(lua_State* pLua) {
39 Vec2i mousePos = GetMousePosition();
40 lua_pushinteger(pLua, mousePos.x);
41 lua_pushinteger(pLua, mousePos.y);
42 return 2;
43}
44
45// ***********************************************************************
46

Callers

nothing calls this directly

Calls 1

GetMousePositionFunction · 0.85

Tested by

no test coverage detected