IphoneInput unity emulation

Hi All,

Does unity emulate IphoneInput for the touchscreen?

I mean, if i run the game in Unity, am is supposed to get events if i click on the game screen with my mouse?

thanks, Benoit

No, you use Unity Remote. You can’t physically emulate multi-touch with a mouse in any way.

–Eric

But it does work the other way round, ie normal mouse input works on the iPhone. One weird thing is that if you have two touches, it takes the center of the two).
What I do if I need multitouch but want to be able to test in the editor with the mouse, is write the code twice, and use “if (Application.isEditor)” to check which to use.

I include both mouse input and accelerometer input in my control script and set a public variable to select which one is used. Mouse clicks emulate a single finger tap automatically on the device.

My game doesn’t utilize multitouch - for that you’d have to use the Remote.