Edit

Share via


WindowsExtensions.GetSpatialInteractionSource Method

Definition

Tries to get an active SpatialInteractionSource with the corresponding handedness and input source type.

public:
 static Microsoft::Windows::UI::Input::Spatial::SpatialInteractionSource ^ GetSpatialInteractionSource(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, Microsoft::MixedReality::Toolkit::Input::InputSourceType inputSourceType);
public static Microsoft.Windows.UI.Input.Spatial.SpatialInteractionSource GetSpatialInteractionSource (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSourceType inputSourceType);
static member GetSpatialInteractionSource : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType -> Microsoft.Windows.UI.Input.Spatial.SpatialInteractionSource
Public Function GetSpatialInteractionSource (handedness As Handedness, inputSourceType As InputSourceType) As SpatialInteractionSource

Parameters

handedness
Handedness

The handedness of the source to get.

inputSourceType
InputSourceType

The input source type of the source to get.

Returns

Microsoft.Windows.UI.Input.Spatial.SpatialInteractionSource

The input source or null if none could be found.

Applies to