Skip to main content

6 docs tagged with "touch"

View all tags

Basic touch input

Handle touch events to drag and move on-screen objects for a minimal mobile-first interaction sample.

Detecting a double tap

Recognize double-tap gestures on touchscreens separately from single taps for mobile-friendly interactions.

Detecting a long press

Measure press duration on touch or mouse to fire actions after the user holds on an element long enough.

Multitouch input

Track every active touch point and visualize multitouch gestures by drawing lines between fingers on the screen.

Point and click movement

Move a character or object toward clicked ground positions using screen-to-world raycasts for simple navigation.

Rotating Objects with Mouse

Orbit or spin an object by mapping mouse drag deltas in screen space to rotation quaternions or euler angles each frame.