コード例 #1
0
    /// <summary>
    /// Register a orientation source
    /// </summary>
    /// <param name="source">The source to register</param>
    /// <returns>if the source was registered</returns>
    protected override bool RegisterOrientationReceiver(IOrientationSource source)
    {
        if (source != null)
        {
            this.localizer.AddOrientationSource(source);
            return(true);
        }

        return(false);
    }
コード例 #2
0
ファイル: ParticleFilter.cs プロジェクト: yappel/BEP_meta1
 /// <summary>
 /// Add a orientation source to the receiver.
 /// </summary>
 /// <param name="source">The source from which data can be extracted.</param>
 public void AddOrientationSource(IOrientationSource source)
 {
     this.orientationFilter.AddOrientationSource(source);
 }
コード例 #3
0
 /// <summary>
 /// Add a orientation source to the receiver.
 /// </summary>
 /// <param name="source">The source from which data can be extracted.</param>
 public void AddOrientationSource(IOrientationSource source)
 {
     this.orientationSources.Add(source);
 }
コード例 #4
0
 /// <summary>
 /// Register a orientation source
 /// </summary>
 /// <param name="source">The source to register</param>
 /// <returns>if the source was registered</returns>
 protected abstract bool RegisterOrientationReceiver(IOrientationSource source);