Ejemplo n.º 1
0
 static int set_onLeftJoystick(IntPtr L)
 {
     try
     {
         InputUtil.Joystick arg0 = (InputUtil.Joystick)ToLua.CheckDelegate <InputUtil.Joystick>(L, 2);
         InputUtil.onLeftJoystick = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 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));
     }
 }
Ejemplo n.º 3
0
    public InputUtil.Joystick InputUtil_Joystick(LuaFunction func, LuaTable self, bool flag)
    {
        if (func == null)
        {
            InputUtil.Joystick fn = delegate(float param0, float param1, float param2) { };
            return(fn);
        }

        if (!flag)
        {
            InputUtil_Joystick_Event target = new InputUtil_Joystick_Event(func);
            InputUtil.Joystick       d      = target.Call;
            target.method = d.Method;
            return(d);
        }
        else
        {
            InputUtil_Joystick_Event target = new InputUtil_Joystick_Event(func, self);
            InputUtil.Joystick       d      = target.CallWithSelf;
            target.method = d.Method;
            return(d);
        }
    }
Ejemplo n.º 4
0
 void Push_InputUtil_Joystick(IntPtr L, InputUtil.Joystick o)
 {
     ToLua.Push(L, o);
 }