Forum Discussion
MeioJo
9 years agoExpert Protege
xBox Controller in Unity
I am coming from this from an artist view so my scripting is simplistic.
How do I get the xbox controllers' buttons to cause events in Unity
ie. I'd like "A' to pull up a menu (show canvas) and "B" to put the menu away (hide canvas).
How do I get the xbox controllers' buttons to cause events in Unity
ie. I'd like "A' to pull up a menu (show canvas) and "B" to put the menu away (hide canvas).
2 Replies
Replies have been turned off for this discussion
- vrdavebOculus StaffPlease see https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-ovrinput. You can use OVRInput.GetDown(OVRInput.RawButton.A/B).
- MeioJoExpert ProtegeThe writer of that help file you linked needs to be held out as above the rest.
'Example usage' like what that person wrote should be mandatory and is for me (an old Basic programmer) a breath of fresh air.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device