Edytuj

Udostępnij za pośrednictwem


PointerUtils.GetPointers Method

Definition

Overloads

GetPointers()

Iterate over all pointers in the input system. May contain duplicates.

GetPointers<T>(Handedness)

Returns iterator over all pointers of specific type, with specific handedness.

GetPointers<T>(Handedness, InputSourceType)

Returns all pointers with given handedness and input type.

GetPointers()

Iterate over all pointers in the input system. May contain duplicates.

public:
 static System::Collections::Generic::IEnumerable<Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer ^> ^ GetPointers();
public static System.Collections.Generic.IEnumerable<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer> GetPointers ();
static member GetPointers : unit -> seq<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer>
Public Shared Iterator Function GetPointers () As IEnumerable(Of IMixedRealityPointer)

Returns

Applies to

GetPointers<T>(Handedness)

Returns iterator over all pointers of specific type, with specific handedness.

public static System.Collections.Generic.IEnumerable<T> GetPointers<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness = Microsoft.MixedReality.Toolkit.Utilities.Handedness.Any) where T : Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
static member GetPointers : Microsoft.MixedReality.Toolkit.Utilities.Handedness -> seq<'T (requires 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)> (requires 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Shared Iterator Function GetPointers(Of T As IMixedRealityPointer) (Optional handedness As Handedness = Microsoft.MixedReality.Toolkit.Utilities.Handedness.Any) As IEnumerable(Of T)

Type Parameters

T

Return only pointers with this input type

Parameters

handedness
Handedness

Handedness of pointer

Returns

Iterator over all pointers of specific type, with specific handedness

Applies to

GetPointers<T>(Handedness, InputSourceType)

Returns all pointers with given handedness and input type.

public:
generic <typename T>
 where T : Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer static System::Collections::Generic::IEnumerable<T> ^ GetPointers(Microsoft::MixedReality::Toolkit::Utilities::Handedness handedness, Microsoft::MixedReality::Toolkit::Input::InputSourceType sourceType);
public static System.Collections.Generic.IEnumerable<T> GetPointers<T> (Microsoft.MixedReality.Toolkit.Utilities.Handedness handedness, Microsoft.MixedReality.Toolkit.Input.InputSourceType sourceType) where T : Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
static member GetPointers : Microsoft.MixedReality.Toolkit.Utilities.Handedness * Microsoft.MixedReality.Toolkit.Input.InputSourceType -> seq<'T (requires 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)> (requires 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Shared Iterator Function GetPointers(Of T As IMixedRealityPointer) (handedness As Handedness, sourceType As InputSourceType) As IEnumerable(Of T)

Type Parameters

T

Parameters

handedness
Handedness

Handedness of pointer

sourceType
InputSourceType

Only return pointers of this input source type

Returns

Iterator over all pointers that match the source type, with specific handedness

Applies to