Search Results for

    Show / Hide Table of Contents

    Class XRInputTracking

    Manager of XR tracking devices.

    Inheritance
    object
    DisposableObject
    XRInputTracking
    OpenVRInputTracking
    Implements
    IDisposable
    Inherited Members
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.XR.TrackedDevices
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class XRInputTracking : DisposableObject, IDisposable

    Methods

    Destroy()

    Destroy all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    DisposableObject.Destroy()

    FireOnDeviceAdded(XRTrackedDevice)

    Subscribes OnDeviceRemoved event.

    Declaration
    protected void FireOnDeviceAdded(XRTrackedDevice device)
    Parameters
    Type Name Description
    XRTrackedDevice device

    Tracked device.

    FireOnDeviceRemoved(XRTrackedDevice)

    Removes OnDeviceRemoved event subscription.

    Declaration
    protected void FireOnDeviceRemoved(XRTrackedDevice device)
    Parameters
    Type Name Description
    XRTrackedDevice device

    Tracked device.

    GetDeviceByHandedness(XRHandedness, uint)

    Gets device by handedness.

    Declaration
    public abstract XRTrackedDevice GetDeviceByHandedness(XRHandedness handedness, uint count = 0)
    Parameters
    Type Name Description
    XRHandedness handedness

    Device role.

    uint count

    Device count.

    Returns
    Type Description
    XRTrackedDevice

    Tracked device.

    GetDeviceByIndex(uint)

    Gets device by index.

    Declaration
    public abstract XRTrackedDevice GetDeviceByIndex(uint deviceIndex)
    Parameters
    Type Name Description
    uint deviceIndex

    Device index.

    Returns
    Type Description
    XRTrackedDevice

    Tracked device.

    GetDeviceByType(XRTrackedDeviceType, uint)

    Gets device by type.

    Declaration
    public abstract XRTrackedDevice GetDeviceByType(XRTrackedDeviceType type, uint count = 0)
    Parameters
    Type Name Description
    XRTrackedDeviceType type

    Device type.

    uint count

    Device count.

    Returns
    Type Description
    XRTrackedDevice

    Tacked device.

    GetDeviceByTypeAndHandedness(XRTrackedDeviceType, XRHandedness, uint)

    Gets device specifying its type and handedness.

    Declaration
    public abstract XRTrackedDevice GetDeviceByTypeAndHandedness(XRTrackedDeviceType type, XRHandedness handedness, uint count = 0)
    Parameters
    Type Name Description
    XRTrackedDeviceType type

    Device type.

    XRHandedness handedness

    Device role.

    uint count

    Device count.

    Returns
    Type Description
    XRTrackedDevice

    Tracked device.

    Initialize()

    Initialize this instance.

    Declaration
    public abstract void Initialize()

    Events

    OnDeviceAdded

    Event raised on device added.

    Declaration
    public event XRInputTracking.OnDeviceHandler OnDeviceAdded
    Event Type
    Type Description
    XRInputTracking.OnDeviceHandler

    OnDeviceRemoved

    Event raised on device removed.

    Declaration
    public event XRInputTracking.OnDeviceHandler OnDeviceRemoved
    Event Type
    Type Description
    XRInputTracking.OnDeviceHandler

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX