Computer-readable storage medium storing information processing program and information processing device
First Claim
1. A non-transitory computer-readable storage medium storing an information processing program that is to be executed on a computing system that includes at least one processor that is configured to process data that is outputted from an acceleration sensor configured to detect accelerations in at least two axial directions, the information processing program comprising instructions configured to:
- repeatedly receive acceleration data;
repeatedly calculate a change amount vector based on the received acceleration data;
repeatedly determine whether or not a magnitude of the calculated change amount vector is equal to or larger than a first threshold value;
execute predetermined processing when the magnitude of the change amount vector is equal to or larger than the first threshold value;
calculate a swinging direction based on the change amount vector when the magnitude of the change amount vector is equal to or larger than the first threshold value;
set at least one second threshold value in a direction opposite to the swinging direction after the swinging direction is calculated;
determine whether or not the change amount vector intersects with the second threshold value; and
determine 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 after an intersection of the change amount vector with the second threshold value is determined,wherein after the magnitude of the change amount vector is determined to be equal to or larger than the first threshold value, subsequent determination of a magnitude of a subsequent change amount vector that is equal to or larger than the first threshold value waits for the magnitude of the change amount vector to be determined to be smaller than the third threshold value.
1 Assignment
0 Petitions
Accused Products
Abstract
A repeated determination of a magnitude of a change amount vector with respect to a first threshold value is made. When it is determined that the magnitude is equal to or larger than the first threshold value, predetermined processing is executed, a swinging direction in which an input device is swung is calculated, and intersection of the swinging direction with a second threshold value is determined. 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. After the magnitude of the change amount vector is determined to be equal to or larger than the first threshold value, the first threshold is not tested again until the magnitude of the change amount vector is smaller than the third threshold value.
-
Citations
17 Claims
-
1. A non-transitory computer-readable storage medium storing an information processing program that is to be executed on a computing system that includes at least one processor that is configured to process data that is outputted from an acceleration sensor configured to detect accelerations in at least two axial directions, the information processing program comprising instructions configured to:
-
repeatedly receive acceleration data; repeatedly calculate a change amount vector based on the received acceleration data; repeatedly determine whether or not a magnitude of the calculated change amount vector is equal to or larger than a first threshold value; execute predetermined processing when the magnitude of the change amount vector is equal to or larger than the first threshold value; calculate a swinging direction based on the change amount vector when the magnitude of the change amount vector is equal to or larger than the first threshold value; set at least one second threshold value in a direction opposite to the swinging direction after the swinging direction is calculated; determine whether or not the change amount vector intersects with the second threshold value; and determine 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 after an intersection of the change amount vector with the second threshold value is determined, wherein after the magnitude of the change amount vector is determined to be equal to or larger than the first threshold value, subsequent determination of a magnitude of a subsequent change amount vector that is equal to or larger than the first threshold value waits for the magnitude of the change amount vector to be determined to be smaller than the third threshold value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. 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:
-
a processing system that includes at least one processor, the processing system configured to; repeatedly obtain the acceleration data; repeatedly calculate a change amount vector that is indicative of a change amount of acceleration based on the obtained acceleration data; repeatedly determine whether or not a magnitude of the calculated change amount vector is equal to or larger than a first threshold value; execute predetermined processing when the magnitude of the change amount vector is equal to or larger than the first threshold value; calculate a swinging direction of the input device based on the change amount vector when the magnitude of the change amount vector is equal to or larger than the first threshold value; set at least one second threshold value in a direction opposite to the swinging direction after the swinging direction is calculated; determine whether or not the change amount vector intersects with the second threshold value; and determine 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 after an intersection of the change amount vector with the second threshold value is determined, wherein after the magnitude of the change amount vector is determined to be equal to or larger than the first threshold value, subsequent determination of a magnitude of a subsequent change amount vector that is equal to or larger than the first threshold value waits for the magnitude of the change amount vector to be determined to be smaller than the third threshold value.
-
-
11. A method of determining an action from a series of accelerations detected by an acceleration sensor in a user input device, the method comprising:
-
repeatedly receiving acceleration data that is detected by the acceleration sensor; repeatedly calculating, on a processing system that includes at least one processor, a vector based on the received acceleration data; determining a first movement state when a magnitude of the vector is equal to or larger than a first threshold value; responsive to determining the first movement state; executing a predetermined process; calculating, via the processing system, a swing direction of the action based on the calculated vector; setting a second threshold value in a direction that is opposite the swinging direction, after the swinging direction is calculated; determining a second movement state when a value based on the vector intersects with a second threshold value; determining a third movement state when the magnitude of the vector is smaller than a third threshold value after the second movement state is determined, the third threshold value being equal to or smaller than the first threshold value; outputting, via the processing system, an animation related to the action onto a display device based on the determined first, second, and/or third movement states, wherein, after the first movement state is determined, no subsequent first movement states are determined until determination of the third movement state. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. An information processing system for determining a swing motion of a user input device that includes an acceleration sensor that is configured to detect accelerations in at least two axial directions, the system comprising:
-
a processing system that includes at least one processor, the processing system configured to; repeatedly receive acceleration data that is detected by the acceleration sensor; repeatedly calculate a vector based on the received acceleration data; determine a first movement state when a magnitude of the vector is equal to or larger than a first threshold value; responsive to determination of the first movement state; execute a predetermined process; calculate a swing direction of the action based on the calculated vector; set a second threshold value in a direction that is opposite the swinging direction, after the swinging direction is calculated; determine a second movement state when a value based on the vector intersects with a second threshold value, after setting the second threshold value; determine a third movement state when the magnitude of the vector is smaller than a third threshold value after the second movement state is determined, the third threshold value being equal to or smaller than the first threshold value; and wherein, after the first movement state is determined, no subsequent first movement states are determined until determination of the third movement state.
-
Specification