Search Unity

Gear VR Controller - Scroll view - how to scroll?

Discussion in 'AR/VR (XR) Discussion' started by Christof_Cheil, Dec 14, 2017.

  1. Christof_Cheil

    Christof_Cheil

    Joined:
    Mar 10, 2016
    Posts:
    6
    Hello,

    i try to make a scroll view work with the touch pad of the Gear VR controller.
    It perfectly works when i deactivate the controller and use the touch pad on the side of the Gear VR but not with the controller. The controller tracks the touch points in absolut coordinates, while the goggles do it in relative positions. This seems to be the reason. What is the most common way to make scrolling work?


    Thanks for your help.

    Cheers

    Christof
     
  2. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    If you want swiping to work with both paradigms (HMD or Gear VR controller) then your best bet would be to always operate on (currentFrameDpadPosition - lastFrameDpadPosition) This will will work for both absolute and relative control schemes.