x


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 !

more ▼

asked May 31 '11 at 09:08 AM

Shanderia gravatar image

Shanderia
16 3 3 4

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first
more ▼

answered May 31 '11 at 09:13 AM

crazyKnight gravatar image

crazyKnight
869 16 20 30

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.

May 31 '11 at 09:16 AM Shanderia

On a second thought, the link you referenced wasn't about what I was asking, ha ha. Thank you anyway though.

May 31 '11 at 09:17 AM Shanderia
(comments are locked)
10|3000 characters needed characters left

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!

more ▼

answered Jul 14 '11 at 02:06 PM

Spk gravatar image

Spk
44 1 1 3

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1968
x957
x583
x166
x8

asked: May 31 '11 at 09:08 AM

Seen: 2240 times

Last Updated: Jul 14 '11 at 02:06 PM