public static int GetMouseButton(IntPtr l)
 {
     int result;
     try
     {
         BaseInput baseInput = (BaseInput)LuaObject.checkSelf(l);
         int button;
         LuaObject.checkType(l, 2, out button);
         bool mouseButton = baseInput.GetMouseButton(button);
         LuaObject.pushValue(l, true);
         LuaObject.pushValue(l, mouseButton);
         result = 2;
     }
     catch (Exception e)
     {
         result = LuaObject.error(l, e);
     }
     return result;
 }