static int AddJoystick(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); InputUtil.Joystick arg0 = (InputUtil.Joystick)ToLua.CheckDelegate <InputUtil.Joystick>(L, 1); InputUtil.AddJoystick(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }