Beispiel #1
0
        /// <summary>
        /// Gets the list of actions for the touch action to be used in MultiTouchAction
        /// </summary>
        /// <param name="touchAction">touch action</param>
        /// <returns></returns>
        public static List <Dictionary <string, object> > GetActionsList(this TouchActions touchAction)
        {
            if (null == touchAction)
            {
                throw new ArgumentNullException("touchAction");
            }

            var actionsList = new List <Dictionary <string, object> >();

            foreach (var iaction in touchAction.GetActions())
            {
                Dictionary <string, object> yy = null;
                if (null == iaction)
                {
                    // do nothing
                }
                else if (null == (yy = iaction._GetParameters()))
                {
                    // do nothing
                }
                else
                {
                    actionsList.Add(yy);
                }
            }

            return(actionsList);
        }