Program, electronic device, and method for simulating a joystick in a virtual space
Abstract:
One or more embodiments of the invention is a program that is executed on an electronic device, the program causing the electronic device to execute: holding data points indicated by values on a first axis and values on a second axis, obtained on the basis of touch events; terminating the holding of a data point for which a predefined holding period has expired among the held data points; determining the slope of a regression line on the basis of the held data points; determining an amount of rotation by which the determined slope of the regression line is to be rotated, on the basis of a displacement direction of the set of the held data points; and determining an angle by which the user controls an object being operated in a virtual space, on the basis of the determined slope of the regression line and the determined amount of rotation.
Public/Granted literature
Information query
Patent Agency Ranking
0/0