Google Cardboard Unity VR - 不再需要鼠标上的 alt 键 up/down

Google Cardboard Unity VR- remove the need for alt key on mouse up/down

谁能告诉我如何取消在 PC 上测试时在 unity google 硬纸板 VR 中必须按 alt-鼠标 up/down 吗?我需要我的 PC 测试 VR 应用程序才能以常规 FPS 方式使用鼠标。鼠标左右都可以正常工作,但上下映射为按 alt-up/down 键。

在 EditorDevice.cs 中找到答案:

if (Input.GetKey(KeyCode.LeftAlt) || Input.GetKey(KeyCode.RightAlt)) 

注释掉它,它工作正常