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

Method getPreviousLocation

core/base/Touch.cpp:58–61  ·  view source on GitHub ↗

returns the previous touch location in OpenGL coordinates

Source from the content-addressed store, hash-verified

56
57// returns the previous touch location in OpenGL coordinates
58Vec2 Touch::getPreviousLocation() const
59{
60 return Director::getInstance()->convertToGL(_prevPoint);
61}
62
63// returns the start touch location in OpenGL coordinates
64Vec2 Touch::getStartLocation() const

Callers 7

onTouchesMovedMethod · 0.45
onTouchesMovedMethod · 0.45
onTouchesMovedMethod · 0.45
onTouchsMovedMethod · 0.45
onTouchesMovedMethod · 0.45
onTouchesMovedMethod · 0.45

Calls 2

getInstanceFunction · 0.85
convertToGLMethod · 0.80

Tested by 6

onTouchesMovedMethod · 0.36
onTouchesMovedMethod · 0.36
onTouchesMovedMethod · 0.36
onTouchsMovedMethod · 0.36
onTouchesMovedMethod · 0.36
onTouchesMovedMethod · 0.36