private static Point CreatePoint(Vector3 position, EFingerType fingerType, EFingerBoneType boneType)
 {
     return(new Point(position)
     {
         Name = string.Join(NameDivider, fingerType.ToString(), boneType.ToString())
     });
 }
Ejemplo n.º 2
0
 ///
 /// @brief Send vibrating command to the server
 ///
 public override void VibrateFinger(EPositionType handType, EFingerType fingerType, ushort duration, byte strength)
 {
     if (m_sock != null)
     {
         sendToServer(GetVibrateFingerJSON(handType, fingerType, duration, strength));
     }
 }
 public Finger(EFingerType type)
 {
     this.Type = type;
 }
Ejemplo n.º 4
0
 ///
 /// @brief Send vibrating command to the server
 ///
 protected String GetVibrateFingerJSON(EPositionType handType, EFingerType fingerType, ushort duration, byte strength)
 {
     return(String.Format("{{\"dst\":\"{0}\",\"type\":\"vibration\",\"data\":{{\"type\":{1},\"dur\":{2},\"str\":{3}}}}}\n", (handType == EPositionType.RightHand ? "rh" : "lh"), (int)fingerType, duration, strength));
 }
Ejemplo n.º 5
0
 abstract public void VibrateFinger(EPositionType handType, EFingerType fingerType, ushort duration, byte strength);