Example #1
0
        public bool simpleDispatch(string type, object data = null)
        {
            if (hasEventListener(type) == false)
            {
                return(false);
            }
            SAEventX e = SAEventX.FromPool(type, data);
            bool     b = dispatchEvent(e);

            SAEventX.ToPool(e);
            return(b);
        }
Example #2
0
        private void clickHandle()
        {
            if (_enabled == false)
            {
                return;
            }

            if (hasEventListener(SAEventX.CLICK))
            {
                SAEventX e = SAEventX.FromPool(SAEventX.CLICK);
                bool     b = dispatchEvent(e);
                SAEventX.ToPool(e);
            }
        }