[SOLVED] Swipe reverse — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

[SOLVED] Swipe reverse

tomazvovktomazvovk Posts: 61
Hiro Protagonist
edited March 2017 in Unity Development
Hello, does anyone have an idea on how to change the ScrollRect's direction when swiping/dragging GearVR's touchpad? I'd like to move scroller's content up when swiping down and vice versa. The only solution I found that should work is to change ScrollRect's scrollSensitivity to negative value. But it doesn't work. I even tried to invert axes in Input Manager (Vertical, Mouse Y, Oculus_GearVR_DpadY).

Comments

  • tomazvovktomazvovk Posts: 61
    Hiro Protagonist
    Okay I solved this by adding an option to Invert Swipe Y Axis in OVR Input Module and added the following code to the SwipeAdjustedPosition(...) function:
    if(InvertSwipeYAxis)
       delta.y *= -1;
Sign In or Register to comment.