Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
MeioJo's avatar
MeioJo
Expert Protege
9 years ago

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).


2 Replies

Replies have been turned off for this discussion
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    Please see https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-ovrinput. You can use OVRInput.GetDown(OVRInput.RawButton.A/B).
  • MeioJo's avatar
    MeioJo
    Expert Protege
    The 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.