Forum Discussion

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

OVRInput: Access to Oculus Go Remote touchpad movement direction possible?

After playing with the sample scene provided in the Oculus utilities it seems clear that 'up' is being calculated based on the direction of the finger movement. Further, changing direction mid-swipe, from up to right for example, is recorded as a right swipe.

It would be very nice to be able to access the movement speed/trajectory of a finger as it crosses a touchpad. Is there a way to access this?

Many thanks imperativity! ;)

2 Replies

Replies have been turned off for this discussion
  • Oh I found it:
    Vector2 primaryTouchpad = OVRInput.Get(OVRInput.Axis2D.PrimaryTouchpad);
    data.AppendFormat("PrimaryTouchpad: ({0:F2}, {1:F2})\n", primaryTouchpad.x, primaryTouchpad.y);