I am writing an application that needs to take certain actions based on iPhone acceleration. Having said that it also needs to make fine distinction between iPhone shake and iPhone tilt events. So if I know the device is being shaken (which somewhat implies tilting) I should only be taking actions for "shaking" and not for "tilting" and vice versa. Could some one point me in the right direction or provide some sample code ?
Regards Viv