GestureSwipe.getVelocity

Gets the current velocity.

If the gesture is recognized, this function returns %TRUE and fills in @velocity_x and @velocity_y with the recorded velocity, as per the last events processed.

class GestureSwipe
bool
getVelocity
(
out double velocityX
,
out double velocityY
)

Parameters

velocityX double

return value for the velocity in the X axis, in pixels/sec

velocityY double

return value for the velocity in the Y axis, in pixels/sec

Return Value

Type: bool

whether velocity could be calculated

Meta