MCPcopy Create free account
hub / github.com/axmolengine/axmol / getStartLocation

Method getStartLocation

core/base/Touch.cpp:64–67  ·  view source on GitHub ↗

returns the start touch location in OpenGL coordinates

Source from the content-addressed store, hash-verified

62
63// returns the start touch location in OpenGL coordinates
64Vec2 Touch::getStartLocation() const
65{
66 return Director::getInstance()->convertToGL(_startPoint);
67}
68
69// returns the delta position between the current location and the previous location in OpenGL coordinates
70Vec2 Touch::getDelta() const

Callers 1

onTouchEndedMethod · 0.45

Calls 2

getInstanceFunction · 0.85
convertToGLMethod · 0.80

Tested by 1

onTouchEndedMethod · 0.36