spiralstorm/Pixelwave — pull request #35 by Bekenn (2012-01-13 19:26:30+00:00)
Title: Fixed issue with PXTouchEngineTouchToScreenCoordinates.

Previously, the touch point was translated by the EAGLLayer's position, which caused the returned point to be off by half a screen in both x and y, as the layer's position is measured from the center of the layer rather than top-left. In my project, this appeared as a very incorrect value for the localPosition property of PXTouchEvent. I guess this goes to show how useful that property really is (or, rather, isn't) -- even after fixing the behavior, I've switched to using stagePosition and globalToLocal, because localPosition isn't very helpful even when it's working correctly.