User Tools

Site Tools


Using the Long-Press Recognizer

A long-press gesture fires its event after a specific amount of time has elapsed while the finger(s) is held down.


  • Press Duration: how long the finger(s) must stay pressed down without moving
  • Move Tolerance: maximum distance the finger(s) can move from the initial position without failing the gesture recognition


void OnLongPress( LongPressGesture gesture ) 
    // how much time has passed since we first touched the screen
    float elapsed = gesture.ElapsedTime;
manual/gestures/longpress.txt · Last modified: 2013/03/11 19:56 by wravaine