UnityJoystickManager.GetCurrentControllerType(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current controller type for the joystick name provided.
protected:
virtual Microsoft::MixedReality::Toolkit::Input::SupportedControllerType GetCurrentControllerType(System::String ^ joystickName);
protected virtual Microsoft.MixedReality.Toolkit.Input.SupportedControllerType GetCurrentControllerType (string joystickName);
abstract member GetCurrentControllerType : string -> Microsoft.MixedReality.Toolkit.Input.SupportedControllerType
override this.GetCurrentControllerType : string -> Microsoft.MixedReality.Toolkit.Input.SupportedControllerType
Protected Overridable Function GetCurrentControllerType (joystickName As String) As SupportedControllerType
Parameters
- joystickName
- String
The name of the joystick from Unity's Input.GetJoystickNames
Returns
The supported controller type