so I have this code:
extension.luaState["input"].get<sol::table>().set("mouseX", sol::property([]() { return Input::mousePointer.x; }));
when I try to log input.mouseX on the Lua side, I get:
but if I log input.mouseX() then I get the correct integer output (Input::mousePointer.x is an int.) I don't think I'm doing anything wrong here, if I am, please point it out. I'd also like to note that I'm using Lua 5.1.