开发者

vibrator in corona sdk

开发者 https://www.devze.com 2023-03-20 22:33 出处:网络
I want to use the vibration alert for the accelerometer action in an a开发者_StackOverflow中文版pp using the Corona SDK.

I want to use the vibration alert for the accelerometer action in an a开发者_StackOverflow中文版pp using the Corona SDK. Can any one give me some clue for this. I have tried searching for this in the internet but not found any useful clues.

Thanks in advance.

Happy Coding


That's actually super easy, put this line in; system.vibrate()

That's all it takes. (I think it plays a beep sound on the simulator but nothing visual, so turn your sound up a bit while testing - or better yet build it. I used it in a test app 2 days ago.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号