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

Method getDelta

core/base/Touch.cpp:70–73  ·  view source on GitHub ↗

returns the delta position between the current location and the previous location in OpenGL coordinates

Source from the content-addressed store, hash-verified

68
69// returns the delta position between the current location and the previous location in OpenGL coordinates
70Vec2 Touch::getDelta() const
71{
72 return getLocation() - getPreviousLocation();
73}
74
75// Returns the current touch force for 3d touch.
76float Touch::getCurrentForce() const

Callers 12

initMethod · 0.45
onTouchesMovedMethod · 0.45
initTouchesMethod · 0.45
MeshRendererHitTestMethod · 0.45
onTouchesMovedMethod · 0.45
onTouchesMovedMethod · 0.45
onTouchesMovedMethod · 0.45
onTouchesMovedMethod · 0.45
onEnterMethod · 0.45
GlobalZTouchTestMethod · 0.45
CameraRotationTestMethod · 0.45
onTouchesMovedMethod · 0.45

Calls

no outgoing calls

Tested by 12

initMethod · 0.36
onTouchesMovedMethod · 0.36
initTouchesMethod · 0.36
MeshRendererHitTestMethod · 0.36
onTouchesMovedMethod · 0.36
onTouchesMovedMethod · 0.36
onTouchesMovedMethod · 0.36
onTouchesMovedMethod · 0.36
onEnterMethod · 0.36
GlobalZTouchTestMethod · 0.36
CameraRotationTestMethod · 0.36
onTouchesMovedMethod · 0.36