I am trying to get touches on left , right , up and down touches of Samsung Gear vr touch pad (which is given at right side of Gear vr)
if (Input.GetMouseButtonDown(button))
{
displayText.text = "Track pad touch down";
}
else if(Input.GetMouseButtonUp(button))
{
displayText.text = "Track pad touch up";
}
When I tried above code for each touch down and touch up I am getting the out put but I need for particular buttons left ,right , up ,down and center.
I want something like this
if(Input.touchpad.left)
{
displayText.text = "left button clicked"
}
else if(Input.touchpad.right)
{
displayText.text = "right button clicked"
}
//and same for up , down and the middle button also. Any suggestion will be appreciated , thank you!