Forum Discussion

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

[SOLVED] Swipe reverse

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).

1 Reply

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    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;