Created
June 20, 2012 05:37
-
-
Save rraallvv/2958298 to your computer and use it in GitHub Desktop.
Convert retrieved toucheds to CGPoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(CGPoint) dispatchTouches:(NSSet *)touches withEvent:(UIEvent *)event | |
{ | |
UITouch* touch = [touches anyObject]; | |
return [[CCDirector sharedDirector] convertToGL:[touch locationInView:[touch view]]]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment