- Home /
Question about user input event handling in Unity game for iOS
Hello everyone !
I'm trying to make a small game for iOS. However, unlike on PC, where I can use a simple syntax : Input.GetButtonDown("Button") to catch a keyboard input, I'm having trouble getting start with how to catch a touch input, and how to determine what the user wants to do with it. Please help me by providing some real simple example ! Thank you very much !
Answer by crazyKnight · May 31, 2011 at 09:13 AM
go through he GUI tutorial
http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html
Thank you ! I've already read reference guides and such. However, I don't really understand how they will be applied in a real situation. That's why I think I should just ask about it directly.
On a second thought, the link you referenced wasn't about what I was asking, ha ha. Thank you anyway though.
Answer by Spk · Jul 14, 2011 at 02:06 PM
You might be interested in checking out the FingerGestures scripting package from the Asset store. It makes it very easy for you to detect the various input events and gestures that users can do on mobile devices.
You can get more information in the forum thread at http://forum.unity3d.com/threads/95983-FingerGestures-Robust-input-gestures-at-your-fingertips!