Skip to main content
Participant
January 23, 2018
Solved

How to disable xbox input?

  • January 23, 2018
  • 2 replies
  • 2090 views
Hi,

I'm using the OVRPlayerController for my project, and I would like disable the xbox controller input so it's not being used for locomotion. Through the Input Preferences in Unity I've already managed to assign the x and y axis input to other functions, but I'm still moving around when using the xbox controller.

Is there a way to disable the xbox input and continue using the touch input?



    This topic has been closed for replies.
    Best answer by kersk
    There is not a great way to do this currently, but you can disable gamepad support within OVRPlayerController and OVRInput (which it is using internally) by modifying OVRInput.cs.

    You can comment out this line: "new OVRControllerGamepadPC()," in the static OVRInput() constructor to prevent the gamepad from being added into the supported controllers list.

    2 replies

    kerskAnswer
    Meta Employee
    January 26, 2018
    There is not a great way to do this currently, but you can disable gamepad support within OVRPlayerController and OVRInput (which it is using internally) by modifying OVRInput.cs.

    You can comment out this line: "new OVRControllerGamepadPC()," in the static OVRInput() constructor to prevent the gamepad from being added into the supported controllers list.
    tbkunoAuthor
    Participant
    January 28, 2018
    Thanks guys, I'm going to give this a try!