Exemple #1
0
        public CCPoint ConvertTouchLocationToPoint(CCTouch touch, CCNode dragContainer)
        {
            var location = dragContainer.WorldToParentspace(touch.LocationOnScreen);

            location.Y = dragContainer.Window.WindowSizeInPixels.Height - location.Y;
            return(location);
        }
Exemple #2
0
            bool touchHits(CCTouch touch)
            {
                var location = touch.Location;
                var area     = child.BoundingBox;

                return(area.ContainsPoint(child.WorldToParentspace(location)));
            }