Dela via


SpatialInteractionController Class

Definition

Represents the specifics of a motion controller.

public ref class SpatialInteractionController sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SpatialInteractionController final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SpatialInteractionController
Public NotInheritable Class SpatialInteractionController
Inheritance
Object Platform::Object IInspectable SpatialInteractionController
Attributes

Windows requirements

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

Remarks

Version history

Windows version SDK version Value added
1709 16299 TryGetRenderableModelAsync
1803 17134 TryGetBatteryReport

Properties

HasThumbstick

Gets whether the motion controller has a thumbstick.

HasTouchpad

Gets whether the motion controller has a touchpad.

ProductId

Gets the product identifier for this motion controller.

SimpleHapticsController

Provides access to the motion controller's ability to vibrate in the user's hand.

VendorId

Gets the vendor identifier for this motion controller.

Version

Gets the version, or revision, number for this motion controller.

Methods

TryGetBatteryReport()

Gets information about the motion controller's current battery state.

TryGetRenderableModelAsync()

Gets a renderable model stream for this controller, which can be unpacked and rendered to represent this controller.

Applies to

See also