Skip to main content
metameta
Up and Coming
January 6, 2017

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.
This topic has been closed for replies.

1 reply

Inspiring
January 6, 2017
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.