Patch Editor
Interaction Patches
Screen Tap and Hold

Screen Tap and Hold patch

Use the Screen Tap and Hold patch to make something happen while the screen is pressed for over half a second.

Input

NameDescription

Enabled

Click the checkbox to enable or disable Screen Tap and Hold.

Outputs

NameDescription
Gesture State

Connect this output to the object patch.

2D Position

To change the position of the object on a 2D surface, connect this output to the object patch.

Example

In the example below, the object appears while the user taps and holds the screen for over half a second. The object disappears when the screen is no longer pressed.

To do this, we connected the Gesture State output on the Screen Tap and Hold patch to the Visible input of the object consumer patch for the Sphere object.

Was this article helpful?