Show / Hide Table of Contents

    Class UnityJoystickManager

    Manages joysticks using unity input system.

    Inheritance
    Object
    BaseService
    BaseDataProvider
    BaseInputDeviceManager
    UnityJoystickManager
    Implements
    IMixedRealityInputDeviceManager
    IMixedRealityDataProvider
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseInputDeviceManager.InputSystem
    BaseInputDeviceManager.InputSystemProfile
    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.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.UnityInput
    Assembly: cs.temp.dll.dll
    Syntax
    [MixedRealityDataProvider(typeof(IMixedRealityInputSystem), null, "Unity Joystick Manager")]
    public class UnityJoystickManager : BaseInputDeviceManager, IMixedRealityInputDeviceManager, IMixedRealityDataProvider, IMixedRealityService, IDisposable

    Constructors

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

    Constructor.

    Declaration
    public UnityJoystickManager(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.

    Fields

    ActiveControllers

    Declaration
    protected static readonly Dictionary<string, GenericJoystickController> ActiveControllers
    Field Value
    Type Description
    Dictionary<String, GenericJoystickController>

    Methods

    Disable()

    Optional Disable function to pause the service.

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

    GetActiveControllers()

    Retrieve all controllers currently registered with this device at runtime (if direct access is required)

    Declaration
    public override IMixedRealityController[] GetActiveControllers()
    Returns
    Type Description
    IMixedRealityController[]
    Overrides
    BaseInputDeviceManager.GetActiveControllers()

    GetCurrentControllerType(String)

    Gets the current controller type for the joystick name provided.

    Declaration
    protected virtual SupportedControllerType GetCurrentControllerType(string joystickName)
    Parameters
    Type Name Description
    String joystickName

    The name of they joystick from Unity's Input.GetJoystickNames

    Returns
    Type Description
    SupportedControllerType

    The supported controller type

    GetOrAddController(String)

    Gets or adds a controller using the joystick name provided.

    Declaration
    protected virtual GenericJoystickController GetOrAddController(string joystickName)
    Parameters
    Type Name Description
    String joystickName

    The name of they joystick from Unity's Input.GetJoystickNames

    Returns
    Type Description
    GenericJoystickController

    A new controller reference.

    Update()

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

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

    Implements

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