A storage medium having stored thereon an acceleration data processing program which is executed by a computer of an apparatus for performing a predetermined process by using acceleration data outputted by an acceleration sensor capable of detecting, in at least one axial direction thereof, an acceleration applied to an input device, the computer being caused to function as:
- data acquisition means for acquiring the acceleration data at predetermined time intervals;
- change amount calculationmeans for calculating a change amount vector representing a change amount of the acceleration by using the acceleration data having been acquired by the data acquisition means;
- accumulation vector calculation means for calculating an accumulation vector by sequentially and cumulatively adding the change amount vector having been calculated by the change amount calculation means;
- and
- direction determination means for determining, as a waving direction representing a moving direction of the input device, a direction of the accumulation vector, when the accumulation vector having been calculated by the accumulation vector calculation means satisfies a predetermined condition.