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

Unity app / MRTK not receiving input from connected Bluetooth Mouse on HoloLens 2 #10305

Closed SWARAVL closed 9 months ago

SWARAVL commented 2 years ago

Describe the bug Bluetooth Mouse do not receive click and grab events to a Unity app running on an HL2. They can control the HoloLens OS - if you press the Windows, it will open the start menu. I am testing this on a Unity application. General movement seems fine as does scrolling but having issues with button clicks and grab object. They do not seem to be working. When tested on a unity editor, i am able to click objects and also grab and move them, but the same does not work inside Hololens2.

To reproduce Steps to reproduce the behavior:

Create a default MouseInput profile and add a Mouse device manager to the MRTK Build app and push to HL2 Connect Bluetooth mouse Run app

Expected behavior: The Unity application (MRTK) should be able to receive input events from the Bluetooth mouse.

Setup Unity Version 2019.2.3f1 MRTK Version v2.5.3

Target platform HoloLens 2 Bluetooth mouse

wlewis55 commented 2 years ago

@SWARAVL This sounds fairly similar to my issue #10271 . A possible solution may be to upgrade to 2.7.0+ and set up your project with OpenXR.

RogPodge commented 2 years ago

@SWARAVL any update on if wlewis's solution ended up fixing the issue?

SWARAVL commented 2 years ago

@RogPodge Unfortunately, we haven't been able to upgrade our MRTK as we have some backend work going on and hence cannot do it as of now inorder to avoid any conflicts.

csrussell commented 2 years ago

I've tested this with the MRTKExamples on Unity 2019.4.31, MRTK 2.7.3 with OpenXR. The mouse is detected and can control the cursor but clicks do not work, the same behavior as with Legacy XR.

Also, I'm on OS build 20348.1440

RogPodge commented 2 years ago

We looked into this a bit and aren't sure that this is ultimately an MRTK bug. We think it's more Unity related than MRTK related, so could you also raise a Unity bug?

Additionally, reporting this issue on the HL2 Feedback Hub would help, since we can then then raise the priority internally once we have the feedback hub report number.

emmaschuepfer commented 1 year ago

@RogPodge I'm facing the same issue. Is there any update or workaround for this?

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 security 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 visithttps://www.mixedrealitytoolkit.org.

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