Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.2.0a1
2018.3.0a1
2018.3.0f1
2019.1.0a1
Issue ID
1108856
Regression
No
[WindowMR][HoloLens] Xbox controller isn't detected after connecting controller while app is minimized
Steps to reproduce:
1. Download attached project
2. Build a "Debug" scene for UWP
3. Open Visual Studio solution and build an app
4. Launch app on mixed reality device
5. Test that Motion and Xbox one controllers are working
6. Minimize app
7. Disconnect controllers (remove batteries or disable Bluetooth)
8. Reconnect controllers and test if they are working in MR Portal
9. Maximize the app and test controllers
Expected results: Motion and Xbox one controller inputs are detected.
Actual results: Motion controller inputs are detected Xbox one are not.
Reproduced with: 2019.1.0a12, 2018.3.0f1, 2018.2.20f1, 2017.4.17f1
Notes: After reconecting Xbox controller in 2017.4 and 2018.2 buttons presses are detected, but trigger and joysticks input are not detected.
Reproducible if Xbox one controller is connected via bluethooth.
Bug is reproducible on HoloLens as well.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (2020.2.X):
This is a bug within Windows: specifically the WinRT API: Windows.Gaming.Input.Gamepad.
When the app is minimized, the Gamepad.GamepadAdded event (sometimes) doesn't fire, and Unity isn't notified the controller has been re-enabled.
The Gamepad API (basically the WinRT version of XInput) is only used for Xbox controllers while all other input controllers are managed through HID. Unfortunately, Xbox controller do not work properly with HID (Left/Right triggers treated as a single axis), and so we have to use this special XInput/Gamepad implementation.