From bfd7cf9a7174f6aa84246dbdb4ad1cd83dc170cd Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Tue, 7 Apr 2020 03:47:32 -0400 Subject: [PATCH] fixed missing argument when creating joystick controller --- Providers/Controllers/UnityInput/UnityJoystickDataProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Providers/Controllers/UnityInput/UnityJoystickDataProvider.cs b/Providers/Controllers/UnityInput/UnityJoystickDataProvider.cs index e19f953b3..402b1a12a 100644 --- a/Providers/Controllers/UnityInput/UnityJoystickDataProvider.cs +++ b/Providers/Controllers/UnityInput/UnityJoystickDataProvider.cs @@ -137,7 +137,7 @@ protected virtual GenericJoystickController GetOrAddController(string joystickNa } var inputSource = MixedRealityToolkit.InputSystem?.RequestNewGenericInputSource($"{controllerType.Name} Controller"); - var detectedController = Activator.CreateInstance(controllerType, TrackingState.NotTracked, Handedness.None, inputSource, null) as GenericJoystickController; + var detectedController = Activator.CreateInstance(controllerType, this, TrackingState.NotTracked, Handedness.None, inputSource, null) as GenericJoystickController; if (detectedController == null) {