microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6k stars 2.12k forks source link

Update usages of the old input APIs to the new input system (input simulation, keyboard/mouse provider, touch screen, etc) #9703

Closed keveleigh closed 9 months ago

keveleigh commented 3 years ago

Describe the problem

In Unity 2020 with OpenXR installed, Unity defaults to the new input APIs. This breaks many of our older data providers which rely on the legacy input APIs.

Describe the solution you'd like

We should either update these providers to support the new input system inline (see branch below) or mark the existing ones as "legacy" and build new providers.

Additional context

I started going down the rabbit hole of supporting the new APIs in a branch at https://github.com/microsoft/MixedRealityToolkit-Unity/compare/main...keveleigh:new-input

polar-kev commented 3 years ago

This requires Unity to be restarted twice when starting a fresh Unity project. This caveat should be included in the 2.7 known issues list.

cherrysodalady commented 3 years ago

hi @keveleigh wanted to ask if your work in the branch is enough to allow mouse functionality in a unity MRTK hololens2 project? or if it still needs work (as I am having issues making the mouse input work on the hololens2 but it works within unity) thanks!

VickyNicholls commented 3 years ago

@cherrysodalady Did this branch work for you? I am also having mouse functionality issues, specifically the mouse click not working, but all other mouse functions working fine.

IssueSyncBot commented 9 months ago

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!