Vibration code?

Monkey Targets Forums/iOS/Vibration code?

Dan(Posted 2012) [#1]
Anybody have code for using the vibration mechanism in ios?


Volker(Posted 2012) [#2]
Diddy has support for StartVibrate(millisecs:int) and StopVibrate().
http://code.google.com/p/diddy/downloads/list


therevills(Posted 2012) [#3]
Diddy only supports Vibration for Android...

The method stubs are there, so if you find any code which we can easily plug in, I'll happily put it into Diddy ;)


Beaker(Posted 2012) [#4]
Useful info here: (near the bottom)
http://blog.ablepear.com/2010/02/iphone-sdk-shake-rattle-roll.html


Volker(Posted 2012) [#5]
Oops, I only looked in didi.ios.cpp if there is a vibrate command in it.


nikoniko(Posted 2014) [#6]
therevills wrote:
so if you find any code which we can easily plug in, I'll happily put it into Diddy


AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);