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

Method getTouchLocation

extensions/GUI/src/GUI/ControlExtension/Control.cpp:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240Vec2 Control::getTouchLocation(Touch* touch)
241{
242 Vec2 touchLocation = touch->getLocation(); // Get the touch position
243 touchLocation = this->convertToNodeSpace(touchLocation); // Convert to the node space of this class
244
245 return touchLocation;
246}
247
248bool Control::onTouchBegan(Touch* /*touch*/, Event* /*event*/)
249{

Callers 6

onTouchBeganMethod · 0.80
onTouchMovedMethod · 0.80
onTouchEndedMethod · 0.80
isTouchInsideMethod · 0.80
onTouchBeganMethod · 0.80
onTouchMovedMethod · 0.80

Calls 2

convertToNodeSpaceMethod · 0.80
getLocationMethod · 0.45

Tested by

no test coverage detected