iOSCanvas.PointerUp

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Event


iOSCanvas.PointerUp(pos As Point, eventInfo As iOSEventInfo)

Supported on Mobile (iOS).

Called when the pointing device is raised or released.

Sample Code

This code saves all touch points in an array where circles are displayed:

// mTouches is a property
// mTouches() As Point

If eventInfo.PointerCount > 0 Then
' Save multi-touch points
For i As Integer = 0 To eventInfo.PointerCount - 1
mTouches.Append(eventInfo.PointerPosition(i))
Next
Else
mTouches.Append(pos)
End If
Me.Invalidate