Basic touch input
Handle touch events to drag and move on-screen objects for a minimal mobile-first interaction sample.
Handle touch events to drag and move on-screen objects for a minimal mobile-first interaction sample.
Recognize double-tap gestures on touchscreens separately from single taps for mobile-friendly interactions.
Measure press duration on touch or mouse to fire actions after the user holds on an element long enough.
Track every active touch point and visualize multitouch gestures by drawing lines between fingers on the screen.
Move a character or object toward clicked ground positions using screen-to-world raycasts for simple navigation.
Orbit or spin an object by mapping mouse drag deltas in screen space to rotation quaternions or euler angles each frame.