Forum Discussion

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

Disable parts of the gamepad controller

Folks,
I am trying to build a guided tutorial in my game and I want to disable \ enable various buttons and axis of the gamepad controller via C#. I can capture all the I\O but cant seem to temporarily disable it. Any direction or guidance is greatly appreciated.

FYI: Im using the oculus utilities player prefabs.

Thanks

2 Replies

Replies have been turned off for this discussion
  • If you want to disable a particular button, simply don't respond to that action.

    You could do that with a boolean flag, for example:

    buttonAEnabled = false;
    ...
    if( IsDown(A) && buttonAEnabled == true ){}
  • yeah,
    but Ill need to change the scripts in the Oculus utilities which is fine, but Id thought Id look for a different option first.

    Anyway to disable\enable at the input manager level?