Hi there,
I have a simple first-person camera setup - i.e., you use the mouse to look around.
Now I’m trying Unity Remote with my iPad, and I thought that “swipe” gestures (touch and drag) would come in as emulated mouse input. I’m getting mouse click events when I tap the iPad screen, but I’m not getting mouse axis input.
So this works (.js code):
if(Input.GetButton("Fire1") || Input.GetKeyDown ("z")) {
//Fire1 works
}
But this doesn’t (.cs code):
inputX += Input.GetAxis("Horizontal") * sensitivityX;
inputY += Input.GetAxis("Vertical") * sensitivityY;
//inputX and inputY don't change when I swipe the iPad screen
I have set up Horizontal and Vertical as type “Mouse Movement” in the Input Manager, and it works fine with an actual mouse.
What do I need to do to get “mouse-like” input from the iPad? Am I simply doing it wrong?
I will keep experimenting, but any help appreciated!
Thanks.