Exemple #1
0
        /// <summary>
        /// Adds a standard touch delegate to the dispatcher's list.
        /// See StandardTouchDelegate description.
        /// IMPORTANT: The delegate will be retained.
        /// </summary>
        public void AddStandardDelegate(ICCStandardTouchDelegate pDelegate, int nPriority)
        {
            CCTouchHandler pHandler = CCStandardTouchHandler.HandlerWithDelegate(pDelegate, nPriority);

            if (!m_bLocked)
            {
                ForceAddHandler(pHandler, m_pStandardHandlers);
            }
            else
            {
                m_pHandlersToAdd.Add(pHandler);
                m_bToAdd = true;
            }
        }
 /// <summary>
 /// allocates a TouchHandler with a delegate and a priority
 /// </summary>
 public static CCStandardTouchHandler HandlerWithDelegate(ICCStandardTouchDelegate pDelegate, int nPriority)
 {
     var pHandler = new CCStandardTouchHandler(pDelegate, nPriority);
     return pHandler;
 }
Exemple #3
0
        /// <summary>
        /// allocates a TouchHandler with a delegate and a priority
        /// </summary>
        public static CCStandardTouchHandler HandlerWithDelegate(ICCStandardTouchDelegate pDelegate, int nPriority)
        {
            var pHandler = new CCStandardTouchHandler(pDelegate, nPriority);

            return(pHandler);
        }