Exemple #1
0
        public void Submit(string key, PositionType position, List <PathPoint> points, int durationMillis)
        {
            HapticApi.point[] pts = new HapticApi.point[points.Count];
            for (var i = 0; i < points.Count; i++)
            {
                pts[i].intensity  = points[i].Intensity;
                pts[i].motorCount = points[i].MotorCount;
                pts[i].x          = points[i].X;
                pts[i].y          = points[i].Y;
            }

            HapticApi.SubmitPathArray(key, position, pts, pts.Length, durationMillis);
        }