Patent ID: 8469811

Claim:
An information processing apparatus for obtaining operation data from an input device, including an imaging device for taking an image of an imaging target, and at least one operation key which can be pressed, and displaying a result of processing executed in accordance with the operation data on a screen of a display device, wherein the operation data includes first data, which is at least one of data on a taken image taken by the imaging device, data representing predetermined two positions in the imaging target in the taken image, data representing a direction connecting the two positions, and inclination data representing an inclination of the input device which is calculated based on the direction, and the second data which indicates whether or not the operation key is pressed, the information processing apparatus comprising: a processor; a memory coupled to said processor, said memory storing instructions that, when executed by said processor, control said processor to: sequentially obtain the operation data; sequentially calculate or obtain the inclination data representing the inclination of the input device from the first data included in the operation data; sequentially calculate an indicated position on the screen indicated by the input device from the first data included in the operation data; determine whether or not the operation key is pressed based on the second data included in the operation data; set a plurality of objects as operation targets based on the indicated position at the timing when the operation key is pressed; store, as a reference inclination, the inclination of the input device at the timing when the operation key is pressed, and delete the reference inclination at the timing when the operation key is released; sequentially calculate a change amount in the inclination which is a difference between the sequentially calculated or obtained inclination data and the reference inclination while the operation key continues to be pressed; rotate, while the operation key continues to be pressed, positions of the plurality of objects as the operation targets about a center defined based on the positions of the plurality of objects, in a direction which corresponds to the change amount in the inclination and by an amount which corresponds to the change amount in the inclination such that one of the plurality of objects, is replaced with another of the plurality of objects, and display the results; and cancel the setting of the operation targets at the timing when the operation key is released.