Delen via


SpatialInteractionSourceState.IsGrasped Property

Definition

Gets whether an input device detects a grasp/grab action (how users take direct action on objects in order to manipulate them).

public:
 property bool IsGrasped { bool get(); };
bool IsGrasped();
public bool IsGrasped { get; }
var boolean = spatialInteractionSourceState.isGrasped;
Public ReadOnly Property IsGrasped As Boolean

Property Value

Boolean

bool

True, if the source detects a grasp/grab action. Otherwise, false.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

A SpatialInteractionSource represents one of three possible sources of input.

  • Hand - The user's hand, which supports different features based on the input device. This ranges from basic gestures on HoloLens to fully articulated hand tracking on HoloLens 2.
  • Controller - A motion controller, which supports input options such as select triggers, menu buttons, grasp buttons, palm triggers, touchpads, or thumbsticks.
  • Speech - System keywords such as "Select" (which represents a press and release gesture).
Source Support
Hololens hand gesture None
Articulated hand gestures Pinch or closed hand
Controller Grab button pressed or hand squeezed

Applies to

See also