Share via


KinectGestureRecognizer.PressingCompleted Event

Occurs when the system no longer considers the pointer to be over a tappable gesture recognizer.

Syntax

public:
event TypedEventHandler<KinectGestureRecognizer, KinectPressingCompletedEventArgs>^ PressingCompleted {
         EventRegistrationToken add (TypedEventHandler<KinectGestureRecognizer, KinectPressingCompletedEventArgs>^ value);
         void remove (EventRegistrationToken token);
}
public event TypedEventHandler<KinectGestureRecognizer, KinectPressingCompletedEventArgs> PressingCompleted
function onPressingCompleted(eventArgs) { /* Your code */ }

// addEventListener syntax
kinectGestureRecognizer.addEventListener("pressingcompleted", onPressingCompleted);
kinectGestureRecognizer.removeEventListener("pressingcompleted", onPressingCompleted);

- or -

kinectGestureRecognizer.onpressingcompleted = onPressingCompleted;

Remarks

The conditions that raise this event are not determined by simple hit testing. If the pointer leaves the tappable gesture recognizer, the system still considers that gesture recognizer the target of the press gesture until the pointer moves far enough away or targets a different tappable gesture recognizer, whichever comes first.

Requirements

Namespace: WindowsPreview.Kinect.Input

Metadata: windowspreview.kinect.winmd

See also

Reference

KinectGestureRecognizer Class
WindowsPreview.Kinect.Input Namespace