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

Method getLocation

core/base/EventMouse.cpp:60–63  ·  view source on GitHub ↗

returns the current touch location in OpenGL coordinates

Source from the content-addressed store, hash-verified

58
59// returns the current touch location in OpenGL coordinates
60Vec2 EventMouse::getLocation() const
61{
62 return Director::getInstance()->convertToGL(_point);
63}
64
65// returns the previous touch location in OpenGL coordinates
66Vec2 EventMouse::getPreviousLocation() const

Callers

nothing calls this directly

Calls 2

getInstanceFunction · 0.85
convertToGLMethod · 0.80

Tested by

no test coverage detected