Forum Discussion
wheatgrinder
10 years agoExplorer
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
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
- cyberealityGrand ChampionIf 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 ){} - wheatgrinderExploreryeah,
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?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months ago