Example #1
0
 /// <summary>
 /// Plays the current haptic effect on all areas of the body.
 /// Sequences will play on all pads.
 /// Experiences/Patterns will play normally.
 /// </summary>
 public void PlayHapticOnBody()
 {
     if (TypeOfFile == HapticFileType.Pattern)
     {
         Pattern pattern = new Pattern(HapticNamespace + "." + HapticFileName);
         pattern.CreateHandle().Play();
     }
     if (TypeOfFile == HapticFileType.Experience)
     {
         Experience exp = new Experience(HapticNamespace + "." + HapticFileName);
         exp.CreateHandle().Play();
     }
     else
     {
         //Default to Play All
         Sequence seq = new Sequence(HapticNamespace + "." + HapticFileName);
         seq.CreateHandle(AreaFlag.All_Areas).Play();
     }
 }