Skip to main content
Up and Coming
May 2, 2016

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


    This topic has been closed for replies.

    2 replies

    Inspiring
    May 3, 2016
    Please see https://developer.oculus.com/documentation/game-engines/latest/concepts/unity-ovrinput. You can use OVRInput.GetDown(OVRInput.RawButton.A/B).
    MeioJoAuthor
    Up and Coming
    May 3, 2016
    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.