Forum Discussion

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

How to disable xbox input?

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?



  • 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

Replies have been turned off for this discussion
  • kersk's avatar
    kersk
    Meta Employee
    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.