示例#1
0
 static public int Clear(IntPtr l)
 {
     try {
         mg.org.Keyboard self = (mg.org.Keyboard)checkSelf(l);
         self.Clear();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
 static public int HasKeyPressed(IntPtr l)
 {
     try {
         mg.org.Keyboard self = (mg.org.Keyboard)checkSelf(l);
         var             ret  = self.HasKeyPressed();
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#3
0
 static public int constructor(IntPtr l)
 {
     try {
         mg.org.Keyboard o;
         o = new mg.org.Keyboard();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#4
0
 static public int IsPressed(IntPtr l)
 {
     try {
         mg.org.Keyboard     self = (mg.org.Keyboard)checkSelf(l);
         UnityEngine.KeyCode a1;
         checkEnum(l, 2, out a1);
         var ret = self.IsPressed(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#5
0
 static public int SetKeyPressed(IntPtr l)
 {
     try {
         mg.org.Keyboard     self = (mg.org.Keyboard)checkSelf(l);
         UnityEngine.KeyCode a1;
         checkEnum(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.SetKeyPressed(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }