I’m creating a game that uses the Daydream controller as a lightsource (via the gyro) and using the touchpad of the controller as a 4-way direction pad or scroller.
I’m thinking of something similar to the Adventure Daydream sample but not exactly the same.
Upon looking at the Controller API basics I think I’ll need to create a controller script that uses GvrController.IsTouching to track the position of the users finger on the touchpad, so if the users finger is on the top area of the touchpad then the player will move forward and so on…
// Example: check the position of the user's finger on the touchpad
if (GvrController.IsTouching) {
Vector2 touchPos = GvrController.TouchPos;
// Do something.
}
Will this idea work? Would it be simple to create button parameters on the Daydream touchpad (ei if the finger is in position y=top and x=0 then player is touching button “forward”)?