MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Remove SupportedControllerEnum

Open Alexees opened this issue 7 years ago • 3 comments

Describe the problem

This enum has a fixed number of controllers. Any new device (Oculus Go) needs to define its own controller there. increasing the list of controllers is crucial when you want to add more controllers.

Describe the solution you'd like

Like #4239, the enum should be replaced with classes instead. A lot of the code is converting between enum and actual class type already, so why not just go with classes altogether?

Describe alternatives you've considered

None considered, seems the best option.

Alexees avatar May 08 '19 15:05 Alexees

@Alexees I think you meant to link to #4235

Really like this proposal as well.

Railboy avatar May 09 '19 16:05 Railboy

#9106 made it in as a first step in this direction for 2.6, adding the concept of "controller definitions" to eventually replace this enum.

A reworked profile using these definitions and deprecation of this enum will come in a future release.

keveleigh avatar Feb 03 '21 18:02 keveleigh

Excellent news! MRTK3 no longer uses a SupportedControllerEnum! We are using Unity's input system and supporting a new controller is effectively automatic.

david-c-kline avatar Aug 25 '22 20:08 david-c-kline