Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums will be revoked at the discretion of Oculus staff.
New to the forums? Click here to read the How To guide. -- Developers click here.

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

nerdVRBuddynerdVRBuddy Posts: 77
Hiro Protagonist
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?

Best Answer

Answers

  • imperativityimperativity Posts: 3,587 Valuable Player
    Hi,

    Please see the documentation here on how to achieve the behavior you want for your application's input.
  • nerdVRBuddynerdVRBuddy Posts: 77
    Hiro Protagonist
    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.
  • vrdavebvrdaveb Posts: 1,596 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.
Sign In or Register to comment.