Ejemplo n.º 1
0
 public static object Microsoft_Robotics_Services_Sample_XInputGamepad_XInputGamepadState_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_XInputGamepadState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.XInputGamepadState target = new global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.XInputGamepadState();
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.XInputGamepadState       from   = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.XInputGamepadState)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Controller tmp = from.Controller;
     if ((tmp != null))
     {
         target.Controller = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Controller)(Microsoft_Robotics_Services_Sample_XInputGamepad_Controller_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_Controller(tmp)));
     }
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.DPad tmp0 = from.DPad;
     if ((tmp0 != null))
     {
         target.DPad = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.DPad)(Microsoft_Robotics_Services_Sample_XInputGamepad_DPad_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_DPad(tmp0)));
     }
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Buttons tmp1 = from.Buttons;
     if ((tmp1 != null))
     {
         target.Buttons = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Buttons)(Microsoft_Robotics_Services_Sample_XInputGamepad_Buttons_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_Buttons(tmp1)));
     }
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Triggers tmp2 = from.Triggers;
     if ((tmp2 != null))
     {
         target.Triggers = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Triggers)(Microsoft_Robotics_Services_Sample_XInputGamepad_Triggers_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_Triggers(tmp2)));
     }
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Thumbsticks tmp3 = from.Thumbsticks;
     if ((tmp3 != null))
     {
         target.Thumbsticks = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Thumbsticks)(Microsoft_Robotics_Services_Sample_XInputGamepad_Thumbsticks_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_Thumbsticks(tmp3)));
     }
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Vibration tmp4 = from.Vibration;
     if ((tmp4 != null))
     {
         target.Vibration = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Vibration)(Microsoft_Robotics_Services_Sample_XInputGamepad_Vibration_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_Vibration(tmp4)));
     }
     return(target);
 }
Ejemplo n.º 2
0
 public static object Microsoft_Robotics_Services_Sample_XInputGamepad_Thumbsticks_TO_Microsoft_Robotics_Services_Sample_XInputGamepad_Proxy_Thumbsticks(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Thumbsticks target = new global::Microsoft.Robotics.Services.Sample.XInputGamepad.Proxy.Thumbsticks();
     global::Microsoft.Robotics.Services.Sample.XInputGamepad.Thumbsticks       from   = ((global::Microsoft.Robotics.Services.Sample.XInputGamepad.Thumbsticks)(transformFrom));
     target.TimeStamp = from.TimeStamp;
     target.LeftX     = from.LeftX;
     target.LeftY     = from.LeftY;
     target.RightX    = from.RightX;
     target.RightY    = from.RightY;
     return(target);
 }