Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
nerdVRBuddy's avatar
7 years ago

In OculusUtilities' OVRPlayerController, is there a way to modify the D pad buttons for the xbox1?

When yuo load the OVR player controller, movement is already available with the joysticks. PLUS the D pad also does movement, like faster running. But i don't want that. I want to use the D pad for my own actions. Is there a way to edit it?

2 Replies

Replies have been turned off for this discussion
  • Thank you very much. I know about the names of the Buttons and how to check them if pressed. But what i'm saying is, by default the PlayerControllerOVR already has actions mapped to those buttons. Specifically moving forward fast. But i don't want that action for the Dpad UP. I want my own action.
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    Like all the scripts in the Assets/Oculus/VR/Scripts/Util folder, OVRPlayerController makes some assumptions about your use case and is designed to be easy for you to modify and replace. Please feel free to edit the script and change the buttons that are checked by the code - for example, UpdateMovement checks OVRInput.Get(OVRInput.Button.DpadUp)), which you could change to something else, like Input.GetButton("Forward") if there is a "Forward" button defined in your input settings.