Show / Hide Table of Contents

    Class InputPlaybackService

    Plays back input animation via the input simulation system.

    Inheritance
    Object
    BaseService
    BaseDataProvider
    BaseInputDeviceManager
    InputPlaybackService
    Implements
    IMixedRealityInputPlaybackService
    IMixedRealityInputDeviceManager
    IMixedRealityDataProvider
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseInputDeviceManager.InputSystem
    BaseInputDeviceManager.InputSystemProfile
    BaseInputDeviceManager.GetActiveControllers()
    BaseInputDeviceManager.RequestPointers(SupportedControllerType, Handedness)
    BaseDataProvider.Registrar
    BaseDataProvider.Service
    BaseService.DefaultPriority
    BaseService.Name
    BaseService.Priority
    BaseService.ConfigurationProfile
    BaseService.Initialize()
    BaseService.Reset()
    BaseService.Enable()
    BaseService.LateUpdate()
    BaseService.Disable()
    BaseService.Destroy()
    BaseService.disposed
    BaseService.Dispose()
    BaseService.Dispose(Boolean)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    [MixedRealityDataProvider(typeof(IMixedRealityInputSystem), null, "Input Playback Service")]
    public class InputPlaybackService : BaseInputDeviceManager, IMixedRealityInputPlaybackService, IMixedRealityInputDeviceManager, IMixedRealityDataProvider, IMixedRealityService, IDisposable

    Constructors

    InputPlaybackService(IMixedRealityServiceRegistrar, IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)

    Constructor.

    Declaration
    public InputPlaybackService(IMixedRealityServiceRegistrar registrar, IMixedRealityInputSystem inputSystem, string name = null, uint priority = 10U, BaseMixedRealityProfile profile = null)
    Parameters
    Type Name Description
    IMixedRealityServiceRegistrar registrar

    The IMixedRealityServiceRegistrar instance that loaded the data provider.

    IMixedRealityInputSystem inputSystem

    The IMixedRealityInputSystem instance that receives data from this provider.

    String name

    Friendly name of the service.

    UInt32 priority

    Service priority. Used to determine order of instantiation.

    BaseMixedRealityProfile profile

    The service's configuration profile.

    Properties

    Animation

    The animation currently being played.

    Declaration
    public InputAnimation Animation { get; set; }
    Property Value
    Type Description
    InputAnimation

    Duration

    Duration of the played animation.

    Declaration
    public float Duration { get; }
    Property Value
    Type Description
    Single

    IsPlaying

    True if the animation is currently playing.

    Declaration
    public bool IsPlaying { get; }
    Property Value
    Type Description
    Boolean

    LocalTime

    The local time in seconds relative to the start of the animation.

    Declaration
    public float LocalTime { get; set; }
    Property Value
    Type Description
    Single

    Methods

    LoadInputAnimation(String)

    Try to load input animation data from the given file.

    Declaration
    public bool LoadInputAnimation(string filepath)
    Parameters
    Type Name Description
    String filepath
    Returns
    Type Description
    Boolean

    True if loading input animation from the file succeeded.

    Pause()

    Pause playback and keep the current local time.

    Declaration
    public void Pause()

    Play()

    Start playing the animation.

    Declaration
    public void Play()

    Stop()

    Stop playing the animation and jump to the start.

    Declaration
    public void Stop()

    Update()

    Optional Update function to perform per-frame updates of the service.

    Declaration
    public override void Update()
    Overrides
    BaseService.Update()

    Implements

    IMixedRealityInputPlaybackService
    IMixedRealityInputDeviceManager
    IMixedRealityDataProvider
    IMixedRealityService
    System.IDisposable
    Back to top Generated by DocFX