Class VisionOSSpatialPointerDevice
Spatial pointer device for VisionOS that manages inputs and events.
Implements
IInputStateCallbackReceiver
IInputUpdateCallbackReceiver
Inherited Members
InputDevice.InvalidDeviceId
InputDevice.description
InputDevice.enabled
InputDevice.canRunInBackground
InputDevice.added
InputDevice.remote
InputDevice.native
InputDevice.updateBeforeRender
InputDevice.deviceId
InputDevice.lastUpdateTime
InputDevice.wasUpdatedThisFrame
InputDevice.allControls
InputDevice.valueType
InputDevice.valueSizeInBytes
InputDevice.all
InputDevice.MakeCurrent()
InputDevice.OnAdded()
InputDevice.OnRemoved()
InputDevice.OnConfigurationChanged()
InputDevice.ExecuteCommand<TCommand>(ref TCommand)
InputDevice.ExecuteCommand(InputDeviceCommand*)
InputControl.name
InputControl.displayName
InputControl.shortDisplayName
InputControl.path
InputControl.layout
InputControl.variants
InputControl.device
InputControl.parent
InputControl.children
InputControl.usages
InputControl.aliases
InputControl.stateBlock
InputControl.noisy
InputControl.synthetic
InputControl.magnitude
InputControl.ToString()
InputControl.EvaluateMagnitude()
InputControl.RefreshConfigurationIfNeeded()
InputControl.RefreshConfiguration()
InputControl.m_StateBlock
InputControl.currentStatePtr
InputControl.previousFrameStatePtr
InputControl.defaultStatePtr
InputControl.noiseMaskPtr
InputControl.stateOffsetRelativeToDeviceRoot
InputControl.optimizedControlDataType
InputControl.CalculateOptimizedControlDataType()
InputControl.ApplyParameterChanges()
Namespace: UnityEngine.XR.VisionOS.InputDevices
Assembly: Unity.XR.VisionOS.dll
Syntax
public class VisionOSSpatialPointerDevice : InputDevice, IInputStateCallbackReceiver, IInputUpdateCallbackReceiver
Properties
inputs
A list of spatial pointer control input states managed by this device.
Declaration
public ReadOnlyArray<VisionOSSpatialPointerControl> inputs { get; protected set; }
Property Value
Type | Description |
---|---|
ReadOnlyArray<VisionOSSpatialPointerControl> |
primaryInput
The primary visionOS spatial pointer control's input state managed by this input device.
Declaration
public VisionOSSpatialPointerControl primaryInput { get; protected set; }
Property Value
Type | Description |
---|---|
VisionOSSpatialPointerControl |
Methods
FinishSetup()
Initializes the input controls managed by the spatial pointer device.
Declaration
protected override void FinishSetup()
Overrides
UnityEngine.InputSystem.InputControl.FinishSetup()
GetStateOffsetForEvent(InputControl, InputEventPtr, ref uint)
Not implemented
Declaration
public bool GetStateOffsetForEvent(InputControl control, InputEventPtr eventPtr, ref uint offset)
Parameters
Type | Name | Description |
---|---|---|
InputControl | control | |
InputEventPtr | eventPtr | |
uint | offset |
Returns
Type | Description |
---|---|
bool |
OnNextUpdate()
Called by the system as part of IInputStateCallbackReceiver
Declaration
public void OnNextUpdate()
Implements
UnityEngine.InputSystem.LowLevel.IInputStateCallbackReceiver
UnityEngine.InputSystem.LowLevel.IInputUpdateCallbackReceiver