i\'ve being reading about your ShakeGesture library and it\'s really good! But i was开发者_开发技巧 wondering if there is a way for use this library for count the numbers of a shake.
I can detect shake in iPhone using Cocos 2D when I use: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
I can get the phone to react to a shake, bu开发者_开发技巧t what is the best way to tell that it has stopped shaking?This example worked for me.
I am playing an audio file in the app, so it doesn\'t turn off when the phone is locked and the screen is off.
I want to count number of shake horizontally and vertically, I have referred to UIAcceleration I have also referred to Motion Events
I\'ve already know how to catch the shake gesture with the code below - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
I\'d like to start new activity by using onShake method. Everything is ok but when new activity starts, onShake command is still possible (when i shake my phone 5 times, new activity starts 5 times).
I am trying to use the Shake Gesture Library on a XNA p开发者_高级运维roject: Shake Gesture Library,
So I have an IBAction yesNo that I want to be ran on a shake event. Not all too sure why this is not working. Have followed all the documentation.