×

Computer-readable storage medium storing information processing program and information processing device

  • US 20090209344A1
  • Filed: 05/07/2008
  • Published: 08/20/2009
  • Est. Priority Date: 02/15/2008
  • Status: Active Grant
First Claim
Patent Images

1. A computer-readable storage medium storing an information processing program executed by a computer of an information processing device which executes processing based on acceleration data which is outputted from an acceleration sensor which detects acceleration in at least two axial directions which is applied to an input device,the information processing program causing the computer to function as:

  • acceleration data obtaining means for obtaining the acceleration data at a unit time interval;

    change amount vector calculation means for calculating, based on the acceleration data obtained by the acceleration data obtaining means, a change amount vector indicative of a change amount of acceleration;

    first determination means for determining at the unit time interval whether or not a magnitude of the change amount vector calculated by the change amount vector calculation means is equal to or larger than a first threshold value;

    processing execution means for executing predetermined processing when the first determination means determines that the magnitude of the change amount vector is equal to or larger than the first threshold value;

    swinging direction calculation means for when the first determination means determines that the magnitude of the change amount vector is equal to or larger than the first threshold value, calculating a swinging direction in which the input device is swung based on the change amount vector;

    second threshold value setting means for after the swinging direction calculation means calculates the swinging direction, setting at least one second threshold value in a direction opposite to the swinging direction;

    second determination means for determining whether or not the change amount vector intersects with the second threshold value; and

    third determination means for after the second determination means determines that the change amount vector intersects with the second threshold value, determining whether or not the magnitude of the change amount vector is smaller than a third threshold value which is equal to or smaller than the first threshold value,when the first determination means determines that the magnitude of the change amount vector is equal to or larger than the first threshold value, the first determination means waiting for the third determination means to determine that the magnitude of the change amount vector is smaller than the third threshold value, and then restarting the determination which is made at the unit time interval as to whether or not the magnitude of the change amount vector is larger than the first threshold value.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×