- Home /
Converting Simple Web game to Iphone
Hi all,
So I've got a very simple web game, I've read that all the OnMouseDown/OnMouseDrag/ etc input should work fine directly on device (due to mouse simulation) but I'm not getting any input at all from the device.
Is there a simple way to convert a web game to iOS without rewriting the input using touches as a simulated mouse?
Thanks
Corky
Comment
Answer by TurboHermit · Mar 09, 2012 at 05:44 PM
Mouse scripting doesn't work on touchscreen... Cause face it we don't have a mouse, we have fingers. I'm not sure if there's a way to convert it, but here you have touch scripting you can replace you're mouse work with this.
http://unity3d.com/support/documentation/ScriptReference/Touch.html