| 1606 | // |
| 1607 | |
| 1608 | int LuaCallOuts::GetMousePosition(lua_State* L) { |
| 1609 | MainWindow* wnd = getMainWindow(); |
| 1610 | if (wnd == NULL) { |
| 1611 | return luaL_pushnil(L); |
| 1612 | } |
| 1613 | |
| 1614 | int mx, my; |
| 1615 | wnd->getWindow()->getMouse(mx, my); |
| 1616 | lua_pushinteger(L, mx); |
| 1617 | lua_pushinteger(L, wnd->getHeight() - my - 1); |
| 1618 | return 2; |
| 1619 | } |
| 1620 | |
| 1621 | |
| 1622 | int LuaCallOuts::GetMouseButtons(lua_State* L) { |
nothing calls this directly
no test coverage detected