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
6.01k stars 2.12k forks source link

Mixed Reality Headset can't catch the handshank event in UWP Project #3211

Closed Emerson92 closed 5 years ago

Emerson92 commented 5 years ago

Does this affect the legacy HoloToolkit (master) or the Mixed Reality Toolkit (mrtk_release)? Mixed Reality Toolkit(master)

Describe the bug I am export the example of "MotionControllerTest Scene" to UWP Project and run this project , i find the demo about MotionControll can not catch the data event about Handshank (both right and left) such as TrggierEvent 、GraspEvent and so on. But When I shut the handshank down and restart it, it works fun.so I check the code of "DebugPanelControllerInfo.CS" and find the issue. I can not get those event because the function "InteractionManager_InteractionSourceDetected(InteractionSourceDetectedEventArgs obj)" does not excution when the first time the HandShank Loaded. And In the funciton "InteractionManager_InteractionSourceUpdated(InteractionSourceUpdatedEventArgs obj)" the Dictionary of controllers has not the info about the handshank so that it can not catch the event data in this function. i will appreciate it if someone can give me some help about this problem.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'HoloToolkit-Examples/Input/Scenes/MotionControllerTest' Scene, and export this Scene into UWP Project.

Screenshots update

Unity Editor Version Unity 2017.4.13f1 (64-bit)

Mixed Reality Toolkit Release Version master

Additional context this first time lanuch the demo: handproblem after restart the handshank: handrestartclip

Yoyozilla commented 5 years ago

Bulk closing older issues. Please reopen if it still repros with the latest Unity 2018 + MRTK release