Exemplo n.º 1
0
 IEnumerator <ITask> OnChangeJoystickHandler(OnChangeJoystick onChangeJoystick)
 {
     if (onChangeJoystick.DriveControl == _driveControl)
     {
         Activate(Arbiter.Choice(
                      _gameControllerPort.ChangeController(onChangeJoystick.Joystick),
                      delegate(DefaultUpdateResponseType response)
         {
             LogInfo("Changed Joystick");
         },
                      delegate(Fault f)
         {
             LogError(null, "Unable to change Joystick", f);
         })
                  );
     }
     yield break;
 }