Patent ID: 8167720

Claim:
A non-transitory storage medium storing a program for performing processing, in an apparatus having an operation device including an acceleration sensor for detecting accelerations on at least two axes orthogonal to each other, according to a rotating operation to move said operation device around an axis orthogonal to said two axes, wherein said program causes a processor of said apparatus to perform: an obtaining step of obtaining the accelerations on the two axes detected by said acceleration sensor; a conversion step of converting said accelerations on the two axes into a point on a two-dimensional coordinate system; an angle calculation step of calculating an angle defined by a line connecting said point converted with a reference point, and a reference direction; an angle change calculation step of calculating an angle change between a present angle calculated in said angle calculation step and a previous angle; an angle correction step of calculating a correction angle based on the angle change calculated in said angle change calculation step and a previous correction angle; and a processing step of performing processing based on the correction angle calculated in said angle correction step.