Search Unity

Question Simple "Press Any Button" script

Discussion in 'VR' started by lukemillergt, May 2, 2023.

  1. lukemillergt

    lukemillergt

    Joined:
    May 2, 2023
    Posts:
    1
    Hey All,

    Just wanted to ask a simple question. Is there an easy way to achieve the generic "Press Any Button to..." resume/pause/[event_here], etc. for VR, specifically a Quest 2?

    I know I can get the individual button presses for all 8 buttons between the two controllers but having a listener for 8 possible scenarios seems overkill.

    Thanks
     
  2. Thomas-Mountainborn

    Thomas-Mountainborn

    Joined:
    Jun 11, 2015
    Posts:
    501
    On Quest 2, you can do this: OVRInput.GetDown(OVRInput.Button.Any)