Esempio n. 1
0
 /// <summary> Play an effect using the Thumper module on this glove (if it has any). </summary>
 /// <param name="effect"></param>
 /// <returns></returns>
 public bool SendThumperCmd(SenseGloveCs.ThumperEffect effect)
 {
     if (this.linkedGlove != null)
     {
         return(this.linkedGlove.SendThumperCmd(effect));
     }
     return(false);
 }
 /// <summary> Play an effect using the Thumper module on this glove (if it has any). </summary>
 /// <param name="effect"></param>
 /// <returns></returns>
 public bool SendThumperCmd(SenseGloveCs.ThumperEffect effect)
 {
     if (GloveData.firmwareVersion >= 4.6f)
     {
         nextThump = (int)effect; //added to queue
         Debug.Log("Queueing " + nextThump.ToString());
         return(true);
     }
     else if (linkedGlove != null && linkedGlove.IsConnected())
     {
         if (SG_Util.Average(lastBrakeLvls) < thumpFFBThreshold)
         {
             return(linkedGlove.SendThumperCmd(effect));
         }
     }
     return(false);
 }