Patent ID: 7750893

Claim:
A computer-readable storage medium storing an input position processing program executed by a computer of a device that is operated based on an input position outputted from a pointing device according to a user operation, wherein: the computer is instructed to perform: detecting a series of pieces of position data in a predetermined coordinate system based on input positions outputted from the pointing device; defining a reference position based on a first piece of position data among the detected series of pieces of position data and storing the reference position in a memory; defining a plurality of areas based on the reference position with one of the defined areas being a reference area in which the reference position is located; and determining an operation to be performed based on a last piece of position data among the detected series of pieces of position data and the reference position; and said determining an operation includes: determining a first operation including, when the last piece of position data indicates a point within a defined area other than the reference area, determining the operation to be performed based on a direction that extends from the reference position to the defined area indicated by the last piece of position data; and determining a second operation including, when an intermediate piece of position data among the detected series of pieces of position data indicates a point within a defined area other than the reference area and the last piece of position data indicates a point within the reference area, determining the operation to be performed based on a combination of directions, including a direction that extends from the reference position to the defined area indicated by the intermediate piece of position data, and a direction that extends from the defined area indicated by the intermediate piece of position data to the reference position.