Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
1
Found in
2018.4
2019.4
2020.2
2021.1
2021.1.0b1
2021.2
Issue ID
1303445
Regression
No
Function Input.GetAxis("Mouse X") and Y-Axis in a Virtual Machine always returns 0
How to reproduce:
1. Create a Virtual Machine
2. Create a new Unity project
3. Create a new script
4. In the "Update()" function write "Debug.Log(Input.GetAxis("Mouse X");"
5. Attach this script to any game object in the Hierarchy
6. Enter Play mode
7. Wave your mouse around the Game View
Expected results: Input.GetAxis("Mouse X") returns various values when moving the mouse around
Actual results: Input.GetAxis("Mouse X") always returns 0
Reproducible with: 2018.4.31f1, 2019.4.18f1, 2020.2.2f1, 2021.1.0b2, 2021.2.0a2
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
- Fixed Timestep setting gets resets to default when upgrading project
- Console displays "NullReferenceException: Object reference not set to an instance of an object." during Editor Theme change
- Editor interface has low contrast when any theme is used
- Crash on vkNegotiateLoaderLayerInterfaceVersion when rendering a specific particle system with an Emission Rate over Time of 35 or more using Vulkan
- Crashes without Stacktrace when opening Scene
Resolution Note (fix version 2021.2):
Fixed Input mouse deltas when Windows is run on a virtual desktop, such as a remote desktop or a VM.
Fixed in 2022.1.0a1
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0b6
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.18f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.17f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.30f1