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 |
---|---|---|
IMixed |
registrar | The IMixed |
IMixed |
inputSystem | The IMixed |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
Base |
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 |
---|---|---|
IMixed |
registrar | The IMixed |
IMixed |
inputSystem | The IMixed |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
Base |
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 |
---|---|---|
IMixed |
inputSystem | The IMixed |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
Base |
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 |
---|---|---|
IMixed |
inputSystem | The IMixed |
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
Base |
profile | The service's configuration profile. |
Fields
ActiveControllers
Declaration
protected static readonly Dictionary<string, GenericJoystickController> ActiveControllers
Field Value
Type | Description |
---|---|
Dictionary<String, Generic |
ActiveControllers
Declaration
protected static readonly Dictionary<string, GenericJoystickController> ActiveControllers
Field Value
Type | Description |
---|---|
Dictionary<String, Generic |
Methods
Disable()
Declaration
public override void Disable()
Overrides
Disable()
Declaration
public override void Disable()
Overrides
GetActiveControllers()
Declaration
public override IMixedRealityController[] GetActiveControllers()
Returns
Type | Description |
---|---|
IMixed |
Overrides
GetActiveControllers()
Declaration
public override IMixedRealityController[] GetActiveControllers()
Returns
Type | Description |
---|---|
IMixed |
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 |
---|---|
Supported |
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 |
---|---|
Supported |
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 |
---|---|
Generic |
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 |
---|---|
Generic |
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()