Feedback on tapping

I want the user to get some feedback when tapping, preferably by the vibrator running for some 100ms. How do I do that in Corona?

You really can’t control vibrations from Corona.  You can have the device vibrate but you get the default value.  One of the best things is to play a subtle audio click when they tap things.

Rob

Thanks for your feedback, Rob. What is meant by “vibrate at default value”? Is this just a short “default” vibrate? That would do the job for me.

I have come across the object:vibrate() command (http://docs.coronalabs.com/api/type/InputDevice/vibrate.html), but it doesn’t seem to work very well. Have I missed something about the implementation?

You want:

http://docs.coronalabs.com/api/library/system/vibrate.html

If you’re building for Android, don’t forget to add the permissions to your build.settings.

Rob

That’s it, Rob! Thanks!

You really can’t control vibrations from Corona.  You can have the device vibrate but you get the default value.  One of the best things is to play a subtle audio click when they tap things.

Rob

Thanks for your feedback, Rob. What is meant by “vibrate at default value”? Is this just a short “default” vibrate? That would do the job for me.

I have come across the object:vibrate() command (http://docs.coronalabs.com/api/type/InputDevice/vibrate.html), but it doesn’t seem to work very well. Have I missed something about the implementation?

You want:

http://docs.coronalabs.com/api/library/system/vibrate.html

If you’re building for Android, don’t forget to add the permissions to your build.settings.

Rob

That’s it, Rob! Thanks!