Forum Discussion
thomerow
7 years agoHonored Guest
Mouse not working with Oculus OVRPlayerController
Hi! To test out the Oculus Rift in Unity (I have version 5.6.3p2) I created a new project, imported the OculusUtilities package, created a plane and a cube and dragged the OVRPlayerController prefab into the scene. When pressing "play" the WASD (and Q and E for step rotation) controls work fine, but I can't rotate using the mouse. What am I missing?
1 Reply
Replies have been turned off for this discussion
- thomerowHonored GuestWhat is your use case for needing mouse input?I still have the old DK2 headset without the touch controllers and want to move around using the "classic" combination of the WASD keys and the mouse to rotate the player.
I already made a small app in 2016 using the OVRPlayerController prefab and back then mouse rotation was part of it.
In the meantime I found out that the current version of OVRPlayerController still has mouse rotation built in but it is disabled by default. To enable it, the private memberbool SkipMouseRotationof classOVRPlayerControllerin the script file OVRPlayerController.cs simply has to be set tofalse.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago