09-23-2016 10:45 AM
void Start()
{
OVRTouchpad.Create();
OVRTouchpad.TouchHandler += HandleTouchHandler;
}
void HandleTouchHandler (object sender, System.EventArgs e)
{
OVRTouchpad.TouchArgs touchArgs = (OVRTouchpad.TouchArgs)e;
if(touchArgs.TouchType == OVRTouchpad.TouchEvent.Left ||
touchArgs.TouchType == OVRTouchpad.TouchEvent.Up)
{
// Code to scroll UP for swipe in directions LEFT/UP
}
else if(touchArgs.TouchType == OVRTouchpad.TouchEvent.Right ||
touchArgs.TouchType == OVRTouchpad.TouchEvent.Down)
{
// Code to scroll DOWN for swipe in directions RIGHT/DOWN
}
}
02-13-2017 09:57 PM
03-27-2017 07:42 PM
02-07-2018 12:01 AM
02-08-2018 08:28 PM
// PointerDown notification
private void ProcessMousePress(MouseButtonEventData data){
if (data.PressedThisFrame() && OVRInput.GetDown (OVRInput.Button.PrimaryTouchpad)) {
}
}