Forum Discussion

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

Distinguish Gear touchpad from Dpad on a gamepad?

Is there a way to distinguish between swipe on the touchpad vs up/down/left/right on a gamepad now that swipe is mapped to Button.Dpad?

I am using the touchpad to move forward when swiping forward (sounds intuitive right?), which is mapped to Button.DpadRight, but with regard to the gamepad, it doesn't make sense to tap right and move forward.

1 Reply

Replies have been turned off for this discussion
  • vrdaveb's avatar
    vrdaveb
    Oculus Staff
    You can use (OVRInput.GetActiveController() == OVRInput.Controller.Touchpad) or specifically check the RawButton values for the touchpad and dpad. See this doc for more detail.