Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
fixed missing argument when creating joystick controller
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Apr 7, 2020
1 parent c80b177 commit bfd7cf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bfd7cf9

Please sign in to comment.