예제 #1
0
 public static object Microsoft_Robotics_Services_Sample_XInputGamepad_ControllerCaps_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_ControllerCaps(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps target = new global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps();
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.ControllerCaps       from   = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.ControllerCaps)(transformFrom));
     target.ControllerType = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerType)(((int)(from.ControllerType))));
     target.TimeStamp      = from.TimeStamp;
     target.PlayerIndex    = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.PlayerIndex)(((int)(from.PlayerIndex))));
     target.IsConnected    = from.IsConnected;
     return(target);
 }
예제 #2
0
 public static object Microsoft_Robotics_Services_Sample_XInputGamepad_QueryControllersResponse_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_QueryControllersResponse(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.QueryControllersResponse target = new global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.QueryControllersResponse();
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.QueryControllersResponse       from   = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.QueryControllersResponse)(transformFrom));
     global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.XInputGamepad.ControllerCaps> tmp = from.Controllers;
     if ((tmp != null))
     {
         int count = tmp.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps tmp1 = default(global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps);
             global::Microsoft.Robotics.Services.Sample.XInputGamepad.ControllerCaps       tmp2 = tmp[index];
             if ((tmp2 != null))
             {
                 tmp1 = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.ControllerCaps)(Microsoft_Robotics_Services_Sample_XInputGamepad_ControllerCaps_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_ControllerCaps(tmp2)));
             }
             tmp0.Add(tmp1);
         }
         target.Controllers = tmp0;
     }
     return(target);
 }