Computer-readable storage medium storing information processing program and information processing device
First Claim
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.
1 Assignment
0 Petitions
Accused Products
Abstract
First determination means determines at a unit time interval whether or not a magnitude of a change amount vector is equal to or larger than a first threshold value. When it is determined that the magnitude of the change amount vector is equal to or larger than the first threshold value, predetermined processing is executed. Also, when it is determined that the magnitude of the change amount vector is equal to or larger than the first threshold value, a swinging direction in which an input device is swung is calculated, and whether or not the change amount vector which shifts in a direction opposite to the swinging direction intersects with a second threshold value is determined by second determination means. After it is determined that the change amount vector intersects with the second threshold value, further, whether or not the magnitude of the change amount vector is smaller than a third threshold value is determined by third determination means. 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 waits for a determination that the magnitude of the change amount vector is smaller than the third threshold value to be made, and restarts the determination as to whether or not the magnitude of the change amount vector is equal to or larger than the first threshold value.
-
Citations
11 Claims
-
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 Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An information processing device for executing 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 device comprising:
-
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.
-
Specification