mirror of
https://github.com/opentx/opentx.git
synced 2025-07-18 13:55:12 +03:00
Re #2084: Lua model.getInput() now also returns switch
This commit is contained in:
parent
ab3114d164
commit
b0277ed057
1 changed files with 1 additions and 0 deletions
|
@ -722,6 +722,7 @@ static int luaModelGetInput(lua_State *L)
|
||||||
lua_pushtableinteger(L, "source", expo->srcRaw);
|
lua_pushtableinteger(L, "source", expo->srcRaw);
|
||||||
lua_pushtableinteger(L, "weight", expo->weight);
|
lua_pushtableinteger(L, "weight", expo->weight);
|
||||||
lua_pushtableinteger(L, "offset", expo->offset);
|
lua_pushtableinteger(L, "offset", expo->offset);
|
||||||
|
lua_pushtableinteger(L, "switch", expo->swtch);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue