Can you Shake the iPod to produce sound?
butterbean
Member Posts: 4,315
Just wondering, I did a search but couldn't find if this is enabled yet?
Comments
Every .1 seconds, check if the accelerometer Y is .5 (or whatever amount you choose) away from prev_y, and then set prev_y to accelerometer Y.
So there's no function for shaking, but it seems like you could check for sudden jumps in the accelerometer to determine shaking.