Class UnityJoystickManager
Manages joysticks using unity input system.
Inheritance
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input.UnityInput
Assembly: cs.temp.dll.dll
Syntax
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 = default(uint), 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. |
UnityJoystickManager(IMixedRealityServiceRegistrar, IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public UnityJoystickManager(IMixedRealityServiceRegistrar registrar, IMixedRealityInputSystem inputSystem, string name = null, uint priority = default(uint), 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. |
UnityJoystickManager(IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public UnityJoystickManager(IMixedRealityInputSystem inputSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
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. |
UnityJoystickManager(IMixedRealityInputSystem, String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public UnityJoystickManager(IMixedRealityInputSystem inputSystem, string name = null, uint priority = default(uint), BaseMixedRealityProfile profile = null)
Parameters
Type | Name | Description |
---|---|---|
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> |
ActiveControllers
Declaration
protected static readonly Dictionary<string, GenericJoystickController> ActiveControllers
Field Value
Type | Description |
---|---|
Dictionary<String, GenericJoystickController> |
Methods
Disable()
Declaration
public override void Disable()
Overrides
Disable()
Declaration
public override void Disable()
Overrides
GetActiveControllers()
Declaration
public override IMixedRealityController[] GetActiveControllers()
Returns
Type | Description |
---|---|
IMixedRealityController[] |
Overrides
GetActiveControllers()
Declaration
public override IMixedRealityController[] GetActiveControllers()
Returns
Type | Description |
---|---|
IMixedRealityController[] |
Overrides
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 the joystick from Unity's Input.GetJoystickNames |
Returns
Type | Description |
---|---|
SupportedControllerType | The supported controller type |
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 the 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 the joystick from Unity's Input.GetJoystickNames |
Returns
Type | Description |
---|---|
GenericJoystickController | A new controller reference. |
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 the joystick from Unity's Input.GetJoystickNames |
Returns
Type | Description |
---|---|
GenericJoystickController | A new controller reference. |
RemoveController(String)
Removes a controller using the joystick name provided.
Declaration
protected virtual void RemoveController(string joystickName)
Parameters
Type | Name | Description |
---|---|---|
String | joystickName | The name of the joystick from Unity's Input.GetJoystickNames |
RemoveController(String)
Removes a controller using the joystick name provided.
Declaration
protected virtual void RemoveController(string joystickName)
Parameters
Type | Name | Description |
---|---|---|
String | joystickName | The name of the joystick from Unity's Input.GetJoystickNames |
Update()
Declaration
public override void Update()
Overrides
Update()
Declaration
public override void Update()