Storage medium, electronic device and method

By calculating the slope of the regression line and the amount of rotation based on the data points of the touch event in the electronic device, the problem that the virtual joystick operation in the existing technology is not intuitive enough is solved, and the operability and responsiveness of the operation in the virtual space are improved.

CN112424739BActive Publication Date: 2024-09-24CYGAMES INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980047294.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-05-16
Filing Date
2019-04-22
Publication Date
2024-09-24
Estimated Expiration
2039-04-22

AI Technical Summary

Technical Problem

In the existing technology, when users operate a virtual joystick on a touch screen, it is difficult to achieve high responsiveness. Especially when operating at a large tilt, a significant vector size needs to be generated, resulting in an operation that is not intuitive and operable.

Method used

In the electronic device, the slope and rotation amount of the regression line are determined based on the data points generated by the touch event, and the angle at which the user controls the virtual object is calculated. The least square method and the weighted method are preferably used to determine the independent variable and dependent variable axes to achieve faster speed. and intuitive operation.

Benefits of technology

It improves the operability of controlling operated objects in virtual space, reduces dependence on reference coordinates, and achieves a faster and more intuitive operating experience, suitable for 360-degree movement and acceleration operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112424739B_ABST
    Figure CN112424739B_ABST
Patent Text Reader

Abstract

A program is provided that makes it possible to improve the operability when controlling an operated object in a virtual space. The present invention is a program executed on an electronic device, the program causing the electronic device to perform the following steps: maintaining data points indicated by values ​​on a first axis and a second axis obtained based on a touch event generated as a result of a user's operation on the touch screen; terminating the maintenance of data points for which a predefined maintenance time period has expired among the maintained data points; determining the slope of a regression line based on the maintained data points; determining the amount of rotation by which the slope of the determined regression line is to be rotated based on the displacement direction of the set of maintained data points; and determining the angle at which the user controls the operated object in the virtual space based on the determined slope of the regression line and the determined amount of rotation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a program and the like. In particular, the present invention relates to a program and the like executed by an electronic device having a touch screen. Background Art

[0002] With the recent improvement of touch screen technology, electronic devices of the type that user input is performed via a user interface on a touch screen have been widely used. In addition, with respect to games executed on electronic devices, instead of user input via traditional physical controllers, a form of user input via a touch screen provided on the electronic device is being widely used.

[0003] In particular, compact portable electronic devices such as smart phones have rapidly become popular, and a large number of games executed on such portable electronic devices have been released. Under such circumstances, various technologies related to methods of operating virtual objects (such as player characters, etc.) displayed on a touch screen have been proposed, including, for example, a technology related to a virtual pad disclosed in Non-Patent Document 1.

[0004] For example, Patent Document 1 discloses a game device equipped with a touch screen and a program, both of which make it possible to set the origin according to the user's touch operation and enable the operation of a simulated joystick. When the touch screen changes from a state where no touch is detected to a state where a touch is detected, the game device sets the reference coordinates based on the coordinates at the start of detection, and when touch detection is to be continued, sets the indication coordinates based on the coordinates detected after the change. Then, the game device recognizes the direction of the vector from the reference coordinates to the indication coordinates as the direction in which the joystick is tilted, and recognizes the magnitude of the vector as the degree of tilt of the joystick, thereby realizing a virtual joystick and thus realizing the operation of a virtual object.

[0005] Prior art literature

[0006] Patent Literature

[0007] Patent Document 1: Japanese Patent 3734820

[0008] Non-patent literature

[0009] Non-patent document 1: Matthias Baldauf, Peter Frohlich, Florence Adegeye, and Stefan Suette. 2015. Investigating On-Screen Gamepad Designs for Smartphone-Controlled Video Games. ACM Trans. Multimedia Comput. Commun. Appl. 12, 1s, Article 22 (October 2015),21pages.DOI:https: / / doi.org / 10.1145 / 2808202 Summary of the invention

[0010] Problem that the invention aims to solve

[0011] In the prior art disclosed in Patent Document 1, the user places a finger at a point on the touch screen to cause the game device to recognize the reference coordinates, slides the finger while maintaining contact, and causes the game device to recognize the indicated coordinates using the contact position of the finger after sliding. With the prior art configured in this way, when the user inputs a direction, a significant distance from the reference coordinates to the indicated coordinates needs to be generated, which makes it difficult to achieve high responsiveness. For example, in the case where the user wishes to perform an operation of greatly tilting the virtual joystick, the size of the vector from the reference coordinates to the indicated coordinates needs to be generated corresponding to the degree of tilt of the greatly tilted joystick.

[0012] Therefore, as an operation method for controlling a virtual object displayed on a touch screen and arranged in a virtual space, for example, a faster and more intuitive operation method is required. In a more general way, as an operation method for controlling an operated object arranged in a virtual space and operable by a user, an operation method with improved operability is required.

[0013] The present invention has been made to solve the above-mentioned problems, and a main object of the present invention is to provide a program or the like that makes it possible to improve the operability when controlling an operated object in a virtual space.

[0014] Solutions for solving problems

[0015] In order to achieve the above-mentioned purpose, a program according to one aspect of the present invention is a program executed on an electronic device equipped with a touch screen, wherein the program enables the electronic device to be characterized by performing the following steps: maintaining data points indicated by values ​​on a first axis and a second axis, obtained based on a touch event generated as a result of a user's operation on the touch screen; terminating the maintenance of data points among the maintained data points for which a predefined maintenance time period has expired; determining the slope of a regression line based on the maintained data points; determining the amount of rotation to rotate the slope of the determined regression line based on the displacement direction of the set of maintained data points; and determining the angle adopted by the user to control the operated object in the virtual space based on the determined slope of the regression line and the determined rotation amount.

[0016] In addition, in the present invention, preferably, in the step of determining the rotation amount, when determining the angle for controlling the operated object, the rotation amount indicating whether the slope of the determined regression line is to be rotated 180 degrees is determined based on the displacement direction of the previous and next data points in the time series among the retained data points.

[0017] In addition, in the present invention, preferably, the program causes the electronic device to further perform the following steps: determining one of the first axis and the second axis as the axis of the independent variable based on the displacement amount of the values ​​on the first axis and the displacement amount of the values ​​on the second axis in the retained data points, and determining the other axis as the axis of the dependent variable, and in the step of determining the slope of the regression line, further determining the slope of the regression line based on the determined axis of the independent variable and axis of the dependent variable.

[0018] In addition, in the present invention, preferably, in the step of determining one of the first axis and the second axis, one of the first axis and the second axis is determined as the axis of the independent variable based on the difference between the maximum value and the minimum value of the value on the first axis and the difference between the maximum value and the minimum value of the value on the second axis in the retained data points.

[0019] In addition, in the present invention, preferably, in the step of determining one of the first axis and the second axis, one of the first axis and the second axis is determined as the axis of the independent variable by comparing the size of the result of applying a weight to the difference between the maximum value and the minimum value of the values ​​on the first axis among the retained data points with the size of the difference between the maximum value and the minimum value of the values ​​on the second axis.

[0020] In addition, in the present invention, preferably, in the step of determining the rotation amount, when determining the angle for controlling the operated object, the rotation amount indicating whether the slope of the determined regression line is to be rotated 180 degrees is determined by comparing the number of positive values ​​and the number of negative values ​​in the difference between the values ​​on the axis of the determined independent variable before and after in the time series in the retained data points.

[0021] In addition, in the present invention, preferably, the step of determining the slope of the regression line includes the following steps: determining the mean value of the independent variable and the mean value of the dependent variable in the retained data points; determining the deviation of the independent variable and the deviation of the dependent variable in the retained data points by using the determined mean values; determining the variance of the independent variable in the retained data points by using the determined deviation of the independent variable; determining the covariance in the retained data points by using the determined deviation of the independent variable and the deviation of the dependent variable; and determining the slope of the regression line by dividing the determined covariance by the determined variance of the independent variable.

[0022] In addition, in the present invention, preferably, the first axis is an X-axis indicating a short side direction in a direction in which sensors of the touch screen are arranged, the second axis is a Y-axis indicating a long side direction in a direction in which sensors of the touch screen are arranged, the second axis is perpendicular to the first axis, and in the step of determining the slope of the regression line, when the axis of the determined independent variable is the second axis, the slope of the regression line is determined by subtracting an angle corresponding to the slope of the regression line determined by dividing the determined covariance by the variance of the determined independent variable from 90 degrees.

[0023] In addition, in the present invention, preferably, the first axis is an X-axis indicating a short side direction in a direction in which sensors of the touch screen are arranged, and the second axis is a Y-axis indicating a long side direction in a direction in which sensors of the touch screen are arranged, and the second axis is perpendicular to the first axis.

[0024] Furthermore, in the present invention, preferably, in the step of determining the angle, the angle is determined per predefined processing time period.

[0025] In addition, in order to achieve the above-mentioned purpose, a program according to one aspect of the present invention is a program group for a game, which is executed on an electronic device equipped with a touch screen, and the program group includes the above-mentioned program. The program group is characterized in that the predefined processing time period is a time period corresponding to the frame rate used to execute the game, and the program group enables the following steps to be performed: determining the angle and size according to each predefined processing time period based on the angle determined according to each predefined processing time period; and controlling the operated object displayed on the touch screen based on the angle and size determined according to each predefined processing time period.

[0026] In addition, in order to achieve the above-mentioned purpose, a program group according to one aspect of the present invention is a program group for a game, which is executed on an electronic device equipped with a touch screen, and the program group includes the above-mentioned program. The program group is characterized in that the predefined processing time period is a time period corresponding to the frame rate used to execute the game, and the program group enables the following steps to be performed: determining the angle and size according to each predefined processing time period based on the angle determined according to each predefined processing time period; and controlling a virtual camera for capturing game images based on the angle and size determined according to each predefined processing time period, and the virtual camera is used as the operated object displayed on the touch screen.

[0027] In addition, in order to achieve the above-mentioned purpose, an electronic device according to one aspect of the present invention is an electronic device equipped with a touch screen, and the electronic device is characterized in that it maintains data points indicated by values ​​on a first axis and a second axis, which are obtained based on touch events generated as a result of a user's operation on the touch screen; terminates the maintenance of data points among the maintained data points for which a predefined maintenance time period has expired; determines the slope of a regression line based on the maintained data points; determines the amount of rotation of the slope of the determined regression line based on the displacement direction of the set of maintained data points; and determines the angle adopted by the user to control the operated object in the virtual space based on the determined slope of the regression line and the determined rotation amount.

[0028] In addition, in order to achieve the above-mentioned purpose, a method according to one aspect of the present invention is a method performed on an electronic device equipped with a touch screen, and the method is characterized in that it includes the following steps: maintaining data points indicated by values ​​on a first axis and a second axis, obtained based on a touch event generated as a result of a user's operation on the touch screen; terminating the retention of data points among the maintained data points for which a predefined retention time period has expired; determining the slope of a regression line based on the maintained data points; determining the amount of rotation to rotate the slope of the determined regression line based on the displacement direction of the set of maintained data points; and determining the angle adopted by the user to control the operated object in the virtual space based on the determined slope of the regression line and the determined rotation amount.

[0029] Effects of the Invention

[0030] The present invention makes it possible to improve the operability when controlling an operated object in a virtual space. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a block diagram showing a hardware structure of an electronic device according to an embodiment of the present invention.

[0032] Figure 2 is a functional block diagram of an electronic device according to an embodiment of the present invention.

[0033] Figure 3 : is a diagram showing coordinate axes consisting of a first axis and a second axis in this embodiment.

[0034] Figure 4 : is a diagram for explaining an example of an angle determined by an angle determination unit and a direction corresponding to the angle.

[0035] Figure 5 is a diagram showing an example of data points held in a data point buffer at time t1.

[0036] Figure 6 is a diagram showing an example of data points held in a data point buffer at time t1.

[0037] Figure 7 It is shown from Figure 5 A plot of the regression line obtained from the set of data points shown.

[0038] Figure 8 is shown by using Figure 7 The slope of the regression line is shown as a graph of the angle calculated using the function aop(x,y).

[0039] Fig. 9 is a diagram showing an example of data points held in a data point buffer at time t2.

[0040] Fig.10 is shown by using Fig. 9 The slope of the regression line is shown as a graph of the angle calculated using the function aop(x,y).

[0041] Fig.11 is a diagram showing an example of data points held in the data point buffer at time t3.

[0042] Fig.12 is a diagram showing an example of data points held in the data point buffer at time t3.

[0043] Fig.13 is shown by using Fig.11 A graph showing the regression line obtained for a set of data points and the angle of the slope of the regression line calculated using the function aop(x,y).

[0044] Fig.14 is a diagram showing an example of data points held in the data point buffer at time t4.

[0045] Fig.15 is a diagram showing an example of data points held in the data point buffer at time t4.

[0046] Fig.16 It is shown from Fig.14 A plot of the regression line obtained from the set of data points shown.

[0047] Fig.17 is shown by using Fig.16 The slope of the regression line is shown as a graph of the angle calculated using the function aop(x,y).

[0048] Fig.18 is a diagram illustrating how an electronic device controls a virtual character based on a set of data points according to an embodiment of the present invention.

[0049] Fig.19 is a flow chart of information processing using an angle determination unit according to an embodiment of the present invention.

[0050] Fig. 20 is a diagram showing a virtual camera arranged in a virtual space for photographing an image displayed by an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] Embodiments of the present invention will be described below with reference to the accompanying drawings. Unless otherwise specifically stated, in each figure, the same reference numerals represent the same or corresponding parts, and for the convenience of explanation, there are cases where the aspect ratio is shown to be different from the actual ratio. In addition, for the convenience of explanation, there are cases where more detailed descriptions than necessary are omitted. For example, there are cases where detailed descriptions of matters that are already well known and repeated descriptions of substantially the same structures are omitted.

[0052] A game application is installed in the electronic device 10 according to an embodiment of the present invention, and the game application presents virtual objects arranged in a virtual space to the user while the game is being played. When the game application is executed, the electronic device 10 according to this embodiment provides a virtual controller (virtual controller) for controlling the operated object, which is a virtual object being operated by the user in the virtual space, in response to the user's operation. The virtual space is defined by the game application and can be a two-dimensional space or a three-dimensional space. For example, the virtual object is a character or an object arranged in the virtual space. For example, controlling the operated object means controlling the character or object arranged in the virtual space.

[0053] For ease of explanation, in the present embodiment, it is assumed that the above-mentioned game application is installed in the electronic device 10; however, there is no limitation on the above-mentioned game application. It is sufficient to install a game application in the electronic device 10 that can control the operated object in response to the user's operation. For example, instead of or in addition to the game application, an input support application or simulation application that causes the action of the operated object in response to the user's operation may be installed in the electronic device 10. The virtual controller provided by the electronic device 10 in the present embodiment can be used for user input types that require direction and size. In the following description, the term "application" generally refers to an application program, and may refer to an App installed on a smart phone or tablet computer.

[0054] Figure 1 1 is a block diagram showing the hardware structure of an electronic device 10 according to an embodiment of the present invention. The electronic device 10 includes a processor 11, an input device 12, a display device 13, a storage device 14, and a communication device 15. These constituent devices are connected via a bus 16. It is assumed that an interface is inserted between the bus 16 and each constituent device as needed. In the present embodiment, the electronic device 10 is a smart phone. Alternatively, the electronic device 10 can be a terminal such as a computer equipped with a contact-type input device, such as a tablet computer or a touchpad, as long as the terminal includes the above structure.

[0055] The processor 11 controls the overall operation of the electronic device 10. For example, the processor 11 is a CPU. Alternatively, an electronic circuit such as an MPU can be used as the processor 11. The processor 11 performs various processes by loading programs and data stored in the storage device 14 and executing these programs. In one example, the processor 11 is composed of a plurality of processors.

[0056] The input device 12 is a user interface for accepting input from a user to the electronic device 10; for example, the input device 12 is a touch screen, a touch pad, a keyboard, or a mouse. The display device (display) 13 displays application screens and the like to the user of the electronic device 10 under the control of the processor 11. In the present embodiment, since the electronic device 10 is a smart phone, the electronic device 10 includes a touch screen 17 as the input device 12, and the touch screen 17 is also used as the display device 13; that is, the input device 12 and the display device 13 have an integrated structure. Although the touch screen 17 in the present embodiment is a projected capacitive touch screen, a device with equivalent functions (if any) may be used.

[0057] The storage device 14 is a storage device included in a general smart phone, which includes a RAM as a volatile memory and a ROM as a non-volatile memory. The storage device 14 may also include an external memory. The storage device 14 stores various programs including game applications. For example, the storage unit 14 stores an operating system (OS), middleware, application programs, various data that can be referenced when executing these programs, and the like.

[0058] In one example, the storage device 14 includes a main storage device and an auxiliary storage device. The main storage device is a volatile storage medium that allows high-speed reading and writing of information, and is used as a storage area and a work area when the processor 11 processes information. The auxiliary storage device stores various programs and data used by the processor 11 when executing various programs. The auxiliary storage device is, for example, a hard disk device; however, the auxiliary storage device may be any type of nonvolatile storage unit or nonvolatile memory capable of storing information, which may be a removable type.

[0059] The communication device 15 sends and receives data with respect to other computers such as a server via a network. For example, the communication device 15 performs wireless communication such as mobile communication or wireless LAN communication to connect to the network 2. In one example, the electronic device 10 downloads a program from a server through the communication device 15 and stores the program in the storage device 14. Alternatively, the communication device 15 can perform known wired communication. In the case where data is neither sent to nor received from other computers, the electronic device 10 does not need to include the communication device 15.

[0060] Figure 2is a functional block diagram of an electronic device 10 according to an embodiment of the present invention. The electronic device 10 includes an input unit 21, a display unit 22, and a control unit 23. The control unit 23 includes an angle determination unit 24, a state determination unit 25, and an application unit 26. In the present embodiment, these functions are implemented by executing a program by the processor 11. For example, the executed program is a program stored in the storage device 14 or received via the communication device 15. Since, as described above, various functions are implemented by loading a program, part or all of a component (function) can be set in another component. Alternatively, these functions can be implemented by hardware by configuring an electronic circuit for implementing part or all of each function.

[0061] The input unit 21 is configured by using the input device 12, and accepts input from the user to the electronic device 10. In the present embodiment, the input unit 21 accepts a touch operation performed by the user on the touch screen 17 and generates touch events, for which a touch detection function generally provided in a smart phone having the touch screen 17 can be used.

[0062] The display unit 22 displays the game application screen on the display device 13 to display a screen corresponding to the user operation.

[0063] The control unit 23 implements a virtual controller. In this embodiment, a three-layer structure is adopted for the control unit 23, and the angle determination unit 24, the state determination unit 25 and the application unit 26 correspond to each layer. For example, the control unit 23 is implemented by the processor 11 executing a program group consisting of programs corresponding to each layer.

[0064] The role of the angle determination unit 24 in the virtual controller implemented by the control unit 23 corresponds to the sensor IC chip inside the controller in the case of a physical controller. The angle determination unit 24 determines the angle at which the user controls the operated object in the virtual space by mainly using the touch event generated by the user's touch operation on the touch screen 17, and forwards the angle to the state determination unit 25.

[0065] The role of the state determination unit 25 corresponds to the entire controller operated in the case of a physical controller. The state determination unit 25 determines a vector (angle and size) corresponding to a touch operation performed by the user on the touch screen 17 by mainly using the angle forwarded from the angle determination unit 24.

[0066] The application unit 26 corresponds to a specific game application that realizes actions in the game, etc. In this game application, similar to a general game application, a frame rate is defined, and, for example, a main loop of a main program is executed at each time period corresponding to the frame rate. Typically, the frame rate is 30fps (frames per second) or 60fps.

[0067] The angle determination unit 24 determines the angle required when the user controls the operated object in the virtual space. In a preferred example, the angle determination unit 24 is a mathematical function library for calculating the angle in real time, and is a software module that implements a statistical processing algorithm for calculating the angle from a sequence of touch events during a short period of time. The sequence of touch events corresponds to the finger movement on the touch screen 17.

[0068] The storage device 14 includes a data point buffer. The data point buffer is a buffer that enables the angle determination unit 24 to hold data points obtained based on a touch event and indicated by a value on the first axis and a value on the second axis.

[0069] The angle determination unit holds the following data points in the data point buffer, which are obtained based on the touch event generated by the user operation on the touch screen 17 and indicated by the value on the first axis and the value on the second axis. Here, the touch event occurs when the user places the finger in contact with the touch screen 17 (touch start), when the user moves the finger while keeping the finger in contact with the touch screen 17 (touch move), when the user moves the finger away from the touch screen 17 (touch end), and so on. The angle determination unit 24 obtains the touch event when the touch event occurs. When obtaining the touch event, the angle determination unit 24 obtains a numerical value group (x, y) composed of two variables and corresponding to the position where the electrostatic capacitance on the touch screen 17 has changed, and also obtains the acquisition time t of (x, y), and stores the numerical value group (x, y, t) composed of three variables in the data point buffer. The data of the numerical value group composed of two variables is obtained by the angle determination unit 24 in association with the touch event, and corresponds to the data point indicated by the value on the first axis and the value on the second axis. t is a value representing the data point acquisition time as the time when (x, y) is obtained, and is stored in the data point buffer in association with (x, y) as described above. In one example, t is an integer value called UNIX (registered trademark) time or a character sequence such as "2017 / 07 / 14 15:48:43.444". Hereinafter, unless otherwise specifically stated, the holding (or holding termination) of a data point by the angle determination unit 24 includes the holding (or holding termination) of the data point acquisition time t associated with the data point.

[0070] In this embodiment, for convenience of explanation, the first axis and the second axis are defined as follows. Figure 3is a diagram showing coordinate axes composed of a first axis and a second axis in the present embodiment. The first axis is an axis indicating a short side direction in a direction substantially parallel to the direction in which the sensors of the touch screen 17 are arranged; that is, the first axis is a horizontal axis (x-axis) substantially parallel to the shorter side of the touch screen 17. The second axis is an axis perpendicular to the first axis and indicating a long side direction in a direction substantially parallel to the direction in which the sensors of the touch screen 17 are arranged; that is, the second axis is a vertical axis (y-axis) substantially parallel to the longer side of the touch screen 17. As described above, the first axis and the second axis are substantially parallel to the direction in which the sensors of the touch screen 17 are arranged, and the position on the touch screen 17 is expressed in the form of coordinates (x, y) along the two axes. Thus, in the present embodiment, the coordinates (x, y) of a data point correspond to the position on the touch screen 17. In the present embodiment, the angle determination unit 24 holds the coordinates (x, y) as data points in a data point buffer. Figure 3 The coordinate setting shown is merely an example, and the coordinates may be set in a manner different from the above example according to the sensor array of the touch screen 17 or a program implemented by the electronic device 10. The sensor is, for example, an electrode.

[0071] Figure 4 It is used to illustrate that Figure 3 1 is a diagram showing an example of an angle determined by the angle determination unit 24 and a direction corresponding to the angle in the case where the coordinate axes are defined. Angle 31 in the first quadrant corresponds to direction 32, angle 33 in the second quadrant corresponds to direction 34, and angle 35 in the fourth quadrant corresponds to direction 36. Here, although direction 34 and direction 36 have the same slope, since direction 34 and direction 36 are opposite to each other, it can be confirmed that angle 33 and angle 35 differ by 180 degrees.

[0072] The angle determination unit 24 terminates the retention of the data points retained in the data point buffer for which the predefined retention time period has expired. For example, when terminating the retention of the data point, the angle determination unit 24 may delete the data, invalidate the data, or appropriately delete the data by associating a flag indicating that the retention has been terminated with the data. The angle determination unit 24 defines a variable D that specifies the life of the data points stored in the data point buffer in milliseconds. The time period specified by the variable D corresponds to the predefined retention time period. However, the value of the variable D is not limited to milliseconds.

[0073] For example, after storing one data point in the data point buffer, the angle determination unit 24 monitors the time elapsed since the storage of the data point, and continuously compares the elapsed time with the variable D. When the elapsed time monitored for the data point exceeds the variable D, the angle determination unit 24 terminates the retention of the data point in the data point buffer. In this way, the angle determination unit 24 manages the life of each data point retained in the data point buffer. At this time, the angle determination unit 24 can calculate the elapsed time by using the data point acquisition time t. It is assumed that the case where the elapsed time is judged to exceed the variable D may mean the case where the elapsed time is judged to be greater than or equal to the variable D. In addition, the unit of the elapsed time of the data point managed by the angle determination unit 24 should preferably be the same as the unit of the variable D.

[0074] For example, when 165 is set in the variable D, the angle determination unit 24 holds the data point stored in the data point buffer for 165 milliseconds, and after the lapse of 165 milliseconds, terminates holding of the data point in the data point buffer.

[0075] The angle determination unit 24 periodically determines whether the angle can be calculated. In the case where the angle can be calculated, the angle determination unit 24 calculates the angle indicated by the set of data points held in the data point buffer by using the data points, and determines the angle as the angle at which the user controls the operated object in the virtual space. By obtaining the angle indicated by the set of data points as described above, the angle determination unit 24 can obtain the angle of the direction intended by the user who has performed the touch operation on the touch screen 17.

[0076] The angle determination unit 24 outputs the determined angle to the state determination unit 25. When outputting the determined angle to the state determination unit 25, for example, the angle determination unit 24 outputs the determined angle together with information indicating an angle event. Instead of directly outputting to the state determination unit 25, the angle determination unit 24 may store the determined angle and the information indicating the angle event in a storage area within the storage unit 14 to which the state determination unit 25 refers.

[0077] When the acquired touch event is a touch start, angle determination unit 24 outputs a start event to state determination unit 25 and does not calculate an angle. When the acquired touch event is a touch end, angle determination unit 24 outputs a stop event to state determination unit 25 and does not calculate an angle.

[0078] The angle determination unit 24 defines a variable B, and in the case where the number of data points held in the data point buffer is greater than or equal to the value of the variable B, calculates and determines the angle by using these data points. In the case where the number of data points held in the data point buffer is less than the value of the variable B (in this case, the angle indicated by the set of data points cannot be calculated with at least a certain level of accuracy), the angle determination unit 24 outputs a hold event to the state determination unit 25, and does not calculate the angle. Since it is generally preferred that three or more data points are available when obtaining the slope of the regression line, the variable B should preferably be set to 3 or more. In the present embodiment, the variable B is set to 3.

[0079] The angle determination unit 24 defines a variable I which specifies, in milliseconds, a time interval for determining whether the angle determination unit 24 can calculate an angle. In the case where the situation where the angle determination unit 24 cannot calculate an angle continues, such as a situation where a touch event occurs continuously, this interval is used as a time interval for calculating the angle by the angle determination unit 24. However, the value of the variable I is not limited to milliseconds.

[0080] The angle determination unit 24 determines the angle by each predefined processing time period by judging whether the angle can be calculated by each predefined processing time period as described above. In a preferred example, the predefined processing time period is a time period corresponding to the frame rate of the execution game. When the frame rate is 30fps (30Hz), variable 1 is set to 33. When 33 is set in variable 1, the angle determination unit 24 determines whether the angle can be calculated every 33 milliseconds. When the angle can be calculated, the angle determination unit 24 determines the calculated angle, and outputs the determined angle together with the angle event to the state determination unit 25. When the angle cannot be calculated, the angle determination unit 24 outputs one of the start event, the stop event and the hold event to the state determination unit 25. The angle event may include information indicating the angle, and in this case, the angle determination unit 24 outputs the angle event to the state determination unit 25 when the angle can be calculated.

[0081] When calculating the angle indicated by the set of data points held in the data point buffer, the angle determination unit 24 determines the slope of the regression line based on the data points held in the data point buffer. Here, the number of data points referred to by the angle determination unit 24 is greater than or equal to 3. When determining the slope of the regression line, the angle determination unit 24 determines one of the x-axis and the y-axis as the axis of the independent variable based on the displacement amount of the value on the x-axis and the displacement amount of the value on the y-axis in the data points held in the data point buffer. At the same time, the angle determination unit 24 determines the other axis as the axis of the dependent variable.

[0082] In the present embodiment, the angle determination unit 24 calculates the slope of the regression line by using the least squares method. A method for obtaining the slope of the regression line by using the least squares method is known; in this method, the degree of correlation between the independent variable and the dependent variable is obtained in the form of a slope. The least squares method is usually applied by considering the x-axis as the axis of the independent variable and the y-axis as the axis of the dependent variable. However, in the case where the value on the x-axis is fixed and only the value on the y-axis changes, the dependent variable does not depend on the independent variable. In addition, in the case of determining the slope along the y-axis, the determined slope sometimes changes from a large negative value to a large positive value across the y-axis, which makes it difficult to stably find the slope. Thus, the angle determination unit 24 determines which of the value on the x-axis and the value on the y-axis is suitable as the independent variable, and determines the slope of the regression line by using the least squares method based on the axis of the independent variable and the axis of the dependent variable so determined.

[0083] The angle determination unit 24 determines the slope a of the regression line y=ax+b when the axis of the independent variable is the x axis, and determines the slope c of the regression line x=cy+d when the axis of the independent variable is the y axis. Specifically, the angle determination unit 24 obtains the slope of the regression line through the following (a) to (e).

[0084] (a) The angle determination unit 24 calculates (determines) the average value of the independent variable and the average value of the dependent variable in the data points held in the data point buffer.

[0085] (b) By using the average value calculated in (a), the angle determination unit 24 calculates (determines) the deviation of the independent variable and the deviation of the dependent variable in the data points held in the data point buffer.

[0086] (c) By using the deviation of the independent variable determined in (b), the angle determination unit 24 calculates (determines) the variance of the independent variable in the data points held in the data point buffer.

[0087] (d) The angle determination unit 24 calculates (determines) the covariance of the data points held in the data point buffer by using the deviation of the independent variable and the deviation of the dependent variable determined in (b).

[0088] (e) The angle determination unit 24 calculates (determines) the slope of the regression line by dividing the covariance determined in (d) by the variance of the independent variable determined in (c).

[0089] In one example, the angle determination unit 24 determines one of the x-axis and the y-axis as the axis of the independent variable based on the difference between the maximum value and the minimum value of the value on the x-axis and the difference between the maximum value and the minimum value of the value on the y-axis in the data points held in the data point buffer, and determines the other axis as the axis of the dependent variable. Preferably, the angle determination unit 24 determines one of the x-axis and the y-axis as the axis of the independent variable based on the value obtained by weighting the difference between the maximum value and the minimum value of the value on the x-axis in the data points held in the data point buffer using a weighting coefficient, and the difference between the maximum value and the minimum value of the value on the y-axis, and determines the other axis as the axis of the dependent variable.

[0090] The angle determination unit 24 calculates (determines) the slope of the regression line by using the least square method as described above. Preferably, the angle determination unit 24 calculates the slope of the regression line means that the angle determination unit 24 calculates the angle of the slope of the regression line. Here, since the slope of the calculated regression line does not have a positive or negative direction, when the slope of the regression line is calculated by using the least square method, the angle determination unit 24 calculates the slope, for example, within the range of 0 to 90 degrees and 270 to 360 degrees. Thus, for example, regardless of whether the angle indicated by the set of data points is 45 degrees or 225 degrees, the slope of the regression line is calculated to be 45 degrees. Thus, after determining the slope of the regression line, based on the displacement direction of the set of data points held in the data point buffer, the angle determination unit 24 determines the amount of rotation by which the slope of the determined regression line is to be rotated. Specifically, after determining the slope of the regression line, when determining the angle at which the user controls the operated object, the angle determination unit 24 determines the amount of rotation indicating whether the slope (angle) of the determined regression line is to be rotated 180 degrees. Here, the displacement direction of a set of data points indicates a direction in which the data points become displaced over time, and corresponds to, for example, a rough direction in which the user moves a finger on the touch screen 17 .

[0091] In one example, the angle determination unit 24 determines the amount of rotation based on the displacement direction of the data points before and after in the time series among the data points held in the data point buffer. Preferably, the angle determination unit 24 determines the amount of rotation by comparing the number of positive differences and the number of negative differences between the values ​​on the axis of the determined independent variable before and after in the time series among the data points held in the data point buffer. The determined amount of rotation is an amount of rotation indicating whether the slope of the determined regression line is to be rotated 180 degrees.

[0092] The angle determination unit 24 stores the data points so as to keep the data points in sequence from the data points stored earlier in the data point buffer. Optionally, when storing the data points in the data point buffer, the angle determination unit 24 stores identification information that enables the order of storage to be identified in association with the data points. As described above, the angle determination unit 24 keeps the data points in the data point buffer in such a manner that the order of storage can be identified (i.e., in such a manner that the time sequence of the stored data points can be identified). At this time, the angle determination unit 24 can obtain the value of time t using the data points.

[0093] The angle determination unit 24 calculates the angle indicated by the set of data points based on the determined slope of the regression line and the determined amount of rotation, and determines the angle as the angle at which the user controls the operated object in the virtual space.

[0094] In the present embodiment, the determination of the slope of the regression line, the determination of the amount of rotation, and the determination of the angle by the above-mentioned angle determination unit 24 are realized by using the aop(x, y) function represented in equation (1). The function aop(x, y) calculates the angle in the form of a real value in the range of 0 to 360 degrees. It is assumed that when the function aop(x, y) calculates the angle, the data point buffer holds n data points P(x, y). In addition, the n data points P k The x-axis value and y-axis value of each data point in (k = 1 to n) are given by P k (x k ,y k ), and assume that the storage order from the earlier storage is P1(x1,y1), P2(x2,y2), ..., P n (x n ,y n ).

[0095]

[0096] For the purpose of case classification, the function aop(x,y) uses the functions rotate(x,,y), left(x), and down(y). First, the function aop(x,y) determines either x or y as an independent variable by using the function rotate(x,y).

[0097] The function rotate(x,y) is defined by equation (2).

[0098] rotate(x,y)=W·(max(x)-min(x))<(max(y)-min(y)) (2)

[0099] The function rotate(x,y) determines whether the n data points P(x,y) are mainly shifted in the y-axis direction, and returns a true value or a false value, for example. The case where the n data points P(x,y) are mainly shifted in the y-axis direction refers to, for example, the case where the user's finger has been moved mainly in the vertical direction on the touch screen 17. In this way, the function rotate(x,y) determines whether the n data points P(x,y) are mainly shifted in the x-axis (horizontal) direction or mainly shifted in the y-axis (vertical) direction, thereby determining which of the values ​​on the x-axis and the values ​​on the y-axis is suitable as an independent variable.

[0100] In formula (2), (max(x)–min(x)) represents the x value (x1, x2, … x n ), which indicates the displacement of n data points P in the x-axis direction. Similarly, (max(y)–min(y)) represents the y values ​​(y1, y2, …y n ), which indicates the displacement amount of the n data points P in the y-axis direction. The variable w is a weight coefficient used to apply a weight to (max(x)–min(x)).

[0101] The function rotate(x,y) satisfies the inequality when (max(y)–min(y)) is greater than the product of (max(y)–min(y)) and the variable w, wherein in this case, the function aop(x,y) performs coordinate transformation. In this case, the function aop(x,y) determines the amount of rotation by considering the y-axis as the axis of the independent variable, the x-axis as the axis of the dependent variable, and further using the function down(y). On the other hand, the function rotate(x,y) does not satisfy the inequality when (max(y)–min(y)) is less than or equal to the product of (max(x)–min(x)) and the variable w, wherein in this case, the function aop(x,y) does not perform coordinate transformation. In this case, the function aop(x,y) determines the amount of rotation by considering the x-axis as the axis of the independent variable, the y-axis as the axis of the dependent variable, and further using the function left(x).

[0102] Without weighting the function rotate(x,y) with the variable w, the function aop(x,y) allows coordinate transformation if the displacement in the y-axis direction is slightly greater than the displacement in the x-axis direction. By applying weights with the variable w, the function aop(x,y) allows coordinate transformation if the slope of the n data points P(x,y) is closer to the y-axis.

[0103] For example, because smartphones are often used in portrait orientation, Fig.17The y-axis of the touch screen 17 shown generally becomes substantially parallel to the gravity direction. Considering that the size of the touch screen 17 in the y-axis direction is larger than the size in the x-axis direction, the variable w should preferably be set to a value greater than 1. As an example, the variable w should preferably be set to 2. In another example, when the smartphone is held in a landscape orientation and the game engine set in the game App does not perform a conversion between a vertical coordinate and a horizontal coordinate, the angle determination unit 24 sets w to a value less than 1 such as 0.5.

[0104] The function left(x) is expressed by equation (3).

[0105] left(x)=|{x′|x′ i >0}|<|{x′|x′ i <0}|,x′←[x1-x0,x2-x1,…,x n -x n-1 ] (3)

[0107] When the function rotate(x,y) does not satisfy the inequality, the function left(x) determines whether the displacement direction of the n data points P(x,y) is the -x axis direction (left direction), and returns a true value or a false value, for example. Specifically, the function left(x) calculates the x values ​​(x1, x2, ... x n ) in the time series (x2–x1, x3–x2, …x n –x n-1 ). The function left(x) determines whether the displacement direction of the n data points P(x,y) is the -x axis direction (left direction) by determining whether the number of negative differences is greater than the number of positive differences. In this way, the function left(x) determines whether the displacement direction of the n data points P(x,y) is the -x axis direction (left direction) or the +x axis direction (right direction), thereby determining the amount of rotation indicating whether the slope of the determined regression line is to be rotated 180 degrees. For example, the function aop(x,y) determines the amount of rotation to be 180 degrees when the function left(x) is true, and the function aop(x,y) determines the amount of rotation to be 0 degrees when the function left(x) is false.

[0108] The function down(y) is expressed by equation (4).

[0109] down(y)=|{y′|y′ i >0}|<|y′|y′ i <0}|,y′←[y-y0,y2-y1,…,y n -y n-1 ] (4)

[0111] When the function rotate(x,y) satisfies the inequality, the function down(y) determines whether the displacement direction of the n data points P(x,y) is in the -y axis direction (downward direction), and returns a true value or a false value, for example. Specifically, the function down(y) calculates the y values ​​(y1, y2, ... y n ) in the time series (y2–y1, y3–y2, …y n –y n-1 ). The function down(y) determines whether the displacement direction of the n data points P(x,y) is the -y axis direction (downward direction) by determining whether the number of negative differences is greater than the number of positive differences. In this way, the function down(y) determines whether the displacement direction of the n data points P(x,y) is the -y axis direction (downward direction) or the +y axis direction (upward direction), thereby determining the amount of rotation indicating whether the slope of the determined regression line is to be rotated 180 degrees. For example, the function aop(x,y) determines the amount of rotation to be 180 degrees when the function down(y) is true, and the function aop(x,y) determines the amount of rotation to be 0 degrees when the function down(y) is false.

[0112] After determining the independent variable (axis of the independent variable) and the amount of rotation in the above manner, the function aop (x, y) calculates the slope by using the least squares method. When x is regarded as an independent variable and y is regarded as a dependent variable, the function aop (x, y) calculates the slope a of the regression line y = ax + b according to formula (5).

[0113]

[0114] here, represents the mean value of x (independent variable), represents the mean value of y (dependent variable),

[0115] represents the covariance of x (independent variable) and y (dependent variable), and

[0116] Represents the variance of x (independent variable).

[0117] When y is regarded as an independent variable and x is regarded as a dependent variable, the function aop(x, y) calculates the slope c of the regression line x=cy+d according to equation (6).

[0118]

[0119] here, represents the mean value of x (dependent variable), represents the mean value of y (independent variable),

[0120] represents the covariance of x (dependent variable) and y (independent variable), and

[0121] Represents the variance of y (independent variable).

[0122] The angle determination unit 24 defines a variable V, and when the variance of the independent variable is greater than or equal to V, the angle is calculated and determined by using the function aop(x, y). When the variance of the independent variable is less than V, the angle determination unit 24 outputs a hold event to the state determination unit 25, and does not calculate the angle. The case where the variance of the independent variable is less than V indicates that the n data points P(x, y) are locally concentrated. Therefore, by defining the variable V, the angle determination unit 24 can stably calculate the angle without ignoring too small finger movements. The variable V is preferably set to 0.7

[0123] When the function rotate(x,y) is false and the function left(x) is false, the function aop(x,y) directly calculates the angle obtained from the slope of the regression line. When the function rotate(x,y) is false and the function left(x) is true, the function aop(x,y) calculates the angle obtained by adding 180 degrees to the angle obtained from the slope of the regression line. When the function rotate(x,y) is true and the function down(y) is false, the function aop(x,y) calculates the angle by subtracting the angle obtained from the slope of the regression line from 90 degrees. When the function rotate(x,y) is true and the function down(y) is true, the function aop(x,y) calculates the angle by adding 180 degrees to the angle obtained by subtracting the angle obtained from the slope of the regression line from 90 degrees.

[0124] The state determination unit 25 determines the angle and size per predefined processing time period based on the angle defined by the angle determination unit 24 per predefined processing time period. The state determination unit 25 outputs the determined angle and size to the application unit 26. Instead of direct output to the application unit 26, the state determination unit 25 may store information indicating the determined angle and size in a storage area referenced by the application unit 26. In a preferred example, the state determination unit 25 is a software module that converts a sequence of continuously calculated angles into a function of a controller. The module is implemented as a state management model (state machine) that uses angles and time and does not use touch coordinates at all.

[0125] Upon receiving information output from the angle determination unit 24 at each predefined processing time period, the state determination unit 25 outputs the state of the slope of the virtual controller at each predefined processing time period according to the received event. The virtual controller implements the physical simulation controller by software, and the slope of the virtual controller corresponds to the slope of the joystick or control stick of the physical controller. The state determination unit 25 outputs the state of the slope of the virtual controller in the form of a vector (i.e., as a direction (angle) and a magnitude). The magnitude may be acceleration information or speed information. The state of the slope of the virtual controller corresponds to the amount input to the physical simulation controller.

[0126] As described above, the state determination unit 25 can be regarded as providing a state transition model for interpreting the meaning of the generated touch event. The state determination unit 25 manages the slope of the virtual controller as a state, and when receiving information output from the angle determination unit 24 at each predefined processing time period, causes the state transition to occur at each predefined processing time period.

[0127] In one example, the state determination unit 25 accumulates information related to the angle output from the angle determination unit 24, and calculates the output to the application unit 26 according to time. For example, in the case where the angle determination unit 24 outputs 45 degrees every 33 ms for more than 165 ms, the state determination unit 25 determines the acceleration information for 165 ms in the direction of 45 degrees. For example, in the case where the same angle is continuously output from the angle determination unit 24, the state determination unit 25 outputs information indicating acceleration in the direction of the angle, and in the case where an angle of 180 degrees opposite to the above angle is subsequently input from the angle determination unit 24, the state determination unit 25 outputs information indicating deceleration. With this structure, the input amount to the controller can be obtained in the form of a time period corresponding to the number of state transitions without having to directly use the actual touch coordinates.

[0128] In one example, upon receiving the information output from the angle determination unit 24, the state determination unit 25 sets the state of the slope of the virtual controller according to the received event, and outputs the movement event or acceleration event together with the information indicating the angle and size to the game application. Specifically, the state determination unit 25 can implement acceleration processing of the simulated physical simulation controller by using a predetermined programming language.

[0129] In a preferred example, the state determination unit 25 maintains the state of the slope of the virtual controller in the form of a vector, and outputs the maintained vector per predefined processing time period. In the case of receiving a start event from the angle determination unit 24, the state determination unit 25 starts state management. In the case of initially receiving an angle event from the angle determination unit 24, the state determination unit 25 starts to maintain a vector consisting of the received angle and the size of a single state transition, and outputs the vector. In the case of receiving another angle event from the angle determination unit 24, the state determination unit 25 adds the vector consisting of the received angle and the size of a single state transition to the internally maintained vector, and maintains and outputs the vector obtained in this way. The state determination unit 25 normalizes the length of the output vector to 1.0 when the length of the vector exceeds 1.0.

[0130] For example, when angle information indicating 45 degrees is received from the angle determination unit 24 once, the state determination unit 25 outputs and holds a vector consisting of an angle of 45 degrees and a magnitude of 0.2. When angle information indicating 45 degrees is received from the angle determination unit 24 four more times, the state determination unit 25 holds and outputs a vector consisting of an angle of 45 degrees and a magnitude of 1.0. Furthermore, when angle information indicating 45 degrees is received from the angle determination unit 24 again, the state determination unit 25 holds and outputs a vector consisting of an angle of 45 degrees and a magnitude of 1.0. When angle information indicating 30 degrees is received, the state determination unit 25 adds together a vector consisting of an angle of 30 degrees and a magnitude of 0.2 and a vector consisting of an angle of 45 degrees and a magnitude of 1.0, and holds and outputs a vector consisting of the angle thus obtained and a magnitude of 1.0. Furthermore, in this case, since the magnitude of the vector exceeds 1.0, the state determination unit 25 normalizes the magnitude to 1.0 when outputting the vector.

[0131] When receiving a hold event from the angle determination unit 24, the state determination unit 25 continues to hold the internally held vector and outputs the vector. When receiving a stop event from the angle determination unit 24, the state determination unit 25 abandons holding the internally held vector and outputs a zero vector or a stop event.

[0132] With this configuration, operations similar to those via a physical analog controller can be realized on the smartphone.

[0133] The application unit 26 has the function of an App activated on the electronic device 10 and provides a service using the App. In a preferred example, the application unit 26 converts the vector output from the state determination unit 25 into the movement of a specific virtual character, etc., which is a function implemented in a general game App. In the case where the App is a Web App, the server that communicates with the electronic device 10 has a part or all of the application unit 26, and the App sends and receives data with respect to the server.

[0134] The following will describe an example of angle calculation by the angle determination unit 24 using the function aop(x, y) shown in equation (1). In the following example, it is assumed that the variable w is 2 and the variance of the independent variable is greater than or equal to V, and it is assumed that t1 to t4 each represent an arbitrary time at which the angle determination unit 24 calculates the angle.

[0135] Figure 5 1 is a diagram showing an example of data points held in the data point buffer at time t1. A set 40 of data points held in the data point buffer is composed of six data points P41 to P46. In addition, the coordinates (x, y) of the x-coordinate values ​​and y-coordinate values ​​of P41 to P46 are P41 (x 41 ,y 41 )、P42(x 42 ,y 42 )、…、P46(x 46 ,y 46 ), and assume that these data points are stored in the data point buffer in the order of P41, P42, ..., P46.

[0136] Initially, the function aop(x,y) compares abs(max(x)–min(x)) and abs(max(y)–min(y)) to each other by using the function rotate(x,y). Figure 6 Understand that the difference between the x coordinate values ​​of P46 and P41 is 46 –x 41 (=Δx) corresponds to abs(max(x)–min(x)), and the difference y between the y coordinate values ​​of P45 and P41 45 –y 41 (=Δy) corresponds to abs(max(y)–min(y)). According to Figure 5 , Δx>Δy. Therefore, the function rotate(x,y) does not satisfy the inequality and thus returns a false value.

[0137] Then, the function aop(x,y) calculates the difference (x) between the previous and next values ​​in the time series by using the function left(x). 42 –x 41 ,x43 -x 42 ,…x 46 –x 45 ).according to Figure 5 , all differences are positive. Therefore, the function left(x) does not satisfy the inequality and therefore returns false.

[0138] In the above example, the function rotate(x, y) is false, and the function left(x) is false. Thus, the function aop(x, y) obtains from the set 40 of data points Figure 7 The regression line 81 is shown, and Figure 8 Angle 91 is shown calculated from the slope of regression line 81 .

[0139] Fig. 9 is a diagram showing an example of data points held in a data point buffer at time t2. A set 60 of data points held in the data point buffer is composed of six data points P61 to P66. The x-coordinate values ​​and y-coordinate values ​​of P61, P62, ..., P66 are respectively the same as the x-coordinate values ​​and y-coordinate values ​​of P46, P45, ..., P41, and it is assumed that these data points are stored in the order of P61, P62, ..., P66.

[0140] Similar to Figure 5 In the example above, the function rotate(x,y) does not satisfy the inequality and thus returns a false value. Then, the function aop(x,y) calculates the difference between the previous and next values ​​in the time series by using the function left(x). Fig. 9 , all differences are negative. Therefore, the function left(x) satisfies the inequality and returns a true value.

[0141] In the above example, the function rotate(x, y) is false, and the function left(x) is true. Thus, the function aop(x, y) obtains from the set 60 of data points Fig. 9 The regression line 82 is shown, and Fig.10 The calculation shown is an angle 92b obtained by adding 180 degrees to the angle 92a calculated from the slope of the regression line 82. Here, although the slope of the regression line 82 is the same as the slope of the regression line 81, and the angle 91 is the same as the angle 92a, since the data point buffer stores the data points in the opposite order, it can be confirmed that the angles calculated by the function aop(x, y) differ by 180 degrees.

[0142] Fig.11 1 is a diagram showing an example of data points held in the data point buffer at time t3. A set 70 of data points held in the data point buffer is composed of six data points P71 to P76. In addition, the x-coordinate values ​​and y-coordinate values ​​of P71 to P76 are respectively P71(x71 ,y 71 )、P72(x 72 ,y 72 )、…、P46(x 76 ,y 76 ), and it is assumed that the data points are stored in the data point buffer in the order of P71, P72, ..., P76.

[0143] from Fig.12 It can be understood that the difference between the x coordinate values ​​of P75 and P71 is 75 –x 71 (=Δx) corresponds to abs(max(x)–min(x)), and the difference y between the y coordinate values ​​of P76 and P71 76 –y 71 (=Δy) corresponds to abs(max(y)–min(y)). According to Fig.11 , 2×Δx<Δy. Therefore, the function rotate(x,y) satisfies the inequality and thus returns a true value.

[0144] Then, the function aop(x,y) calculates the difference (y) between the previous and next values ​​in the time series by using the function down(y). 72 –y 71 ,y 73 -y 72 ,…y 76 –y 75 ).according to Fig.11 , all differences are positive. Therefore, the function down(y) does not satisfy the inequality and returns false.

[0145] In the above example, the function rotate(x, y) is true, and the function down(y) is false. Thus, the function aop(x, y) obtains from the set 70 of data points Fig.13 The regression line 83 is shown, and Fig.13 The angle 93b is calculated by subtracting the angle 93a calculated from the slope of the regression line 83 from 90 degrees. Here, Fig.13 The angle 93a shown is shown to correspond to the position when the angle calculated from the slope of the regression line 83 with y considered as the independent variable and x considered as the dependent variable is transformed back to the coordinates with x considered as the independent variable and y considered as the dependent variable.

[0146] Fig.144 is a diagram showing an example of data points held in the data point buffer at time t4. Time t4 is the time after time Δt has passed from time t1. A set 40' of data points held in the data point buffer is composed of eight data points P45 to P52. In addition, the x-coordinate values ​​and y-coordinate values ​​of P45 to P52 are respectively P45(x 45 ,y 46 )、P46(x 46 ,y 46 )、…、P52(x 52 ,y 52 ), and assume that the data points are stored in the order of P45, P46, …, P52.

[0147] from Fig.15 It can be understood that the difference between the x coordinate values ​​of P52 and P45 is 52 –x 45 (=Δx) corresponds to abs(max(x)–min(x)), and the difference y between the y coordinate values ​​of P46 and P52 46 –y 52 (=Δy) corresponds to abs(max(y)–min(y)). According to Fig.14 , 2×Δx<Δy. Therefore, the function rotate(x,y) satisfies the inequality and thus returns a true value.

[0148] Then, the function aop(x,y) calculates the difference (y) between the previous and next values ​​in the time series by using the function down(y). 46 –y 45 ,y 47 -y 46 ,…y 52 –y 51 ).according to Fig.11 , except y 46 –y 45 All differences except y are negative. Therefore, the function down(y) satisfies the inequality and thus returns a true value.

[0149] In the above example, the function rotate(x, y) is true, and the function down(y) is true. Thus, the function aop(x, y) obtains from the set 40' of data points Fig.16 The regression line 84 is shown, and Fig.17 The calculation shown is an angle 94c obtained by adding 180 degrees to the angle 94b calculated by subtracting the angle 94a calculated from the slope of the regression line 83 from 90 degrees.

[0150] Fig.18is a diagram showing how the electronic device 10 controls a virtual character 121 based on a set 120 of data points according to an embodiment of the present invention. Fig.18 A data point set 120 is shown that visualizes data points corresponding to touch events generated by user operations on the touch screen 17. The electronic device 10 controls movements such as walking, running, and switching directions of a virtual character 121 as an operated object based on an angle 122 indicated by the data point set 120.

[0151] Fig.19 is a flow chart of information processing using angle determination unit 24 according to an embodiment of the present invention. The flow chart starts when a touch event is generated and angle determination unit 24 obtains data points from the touch event.

[0152] In step 101, the angle determination unit 24 stores the obtained data point in a data point buffer. At this time, the angle determination unit 24 associates the following T and D with the data point being stored, where: T indicates the time elapsed after the storage of the data point in milliseconds, and D indicates the time period (retention life) that the data point can be stored in the data point buffer in milliseconds.

[0153] Then, in step 102 , the angle determination unit 24 outputs a start event to the state determination unit 25 .

[0154] Then, in step 103, the angle determination unit 24 determines whether a touch event is generated. Step 103 is performed after 1 ms from the start of the flowchart. In the case of a touch event being generated, the flowchart proceeds to step 104, and in the case of a touch event not being generated, the flowchart proceeds to step 106.

[0155] In step 104 , the angle determination unit 24 determines whether the generated touch event is a touch end. If the acquired touch event is a touch end, the flowchart is terminated. If the acquired touch event is not a touch end, the flowchart proceeds to step 105 .

[0156] In step 105, the angle determination unit 24 obtains a data point from the generated touch event and stores the data point in a data point buffer. At this time, the angle determination unit 24 associates the following T and D with the data point being stored, where: T indicates the time elapsed after the storage of the data point in milliseconds, and D indicates the time period that the data point can be stored in the data point buffer in milliseconds.

[0157] Then, in step 106, the angle determination unit 24 terminates the retention of the data points whose elapsed time period T is greater than or equal to the variable D among the data points retained in the data point buffer. The angle determination unit 24 compares the elapsed time T with the variable D for each data point stored in the data point buffer, and terminates the retention of each data point whose elapsed time is greater than or equal to the variable D.

[0158] Then, in step 107 , the angle determination unit 24 determines whether the number n of data points held in the data point buffer is greater than or equal to the value of the variable B. In the case where the number n is greater than or equal to the variable B, the flowchart proceeds to step 108 , and in the case where the number n is less than the variable B, the flowchart proceeds to step 113 .

[0159] In step 108, the angle determination unit 24 determines one of the x-axis and the y-axis as the axis of the independent variable based on the displacement of the values ​​on the x-axis and the displacement of the values ​​on the y-axis in the data points held in the data point buffer. At the same time, the angle determination unit 24 determines the other axis as the axis of the dependent variable.

[0160] Then, in step 109, in the case where the x-axis is determined as the axis of the independent variable in step 108, the angle determination unit 24 determines the angle of the slope of the regression line by calculating the angle of the slope using equation (5). In one example, when the angle of the slope is calculated by using equation (5), the angle determination unit 24 calculates the angle within the range of 0 to 90 degrees and 270 to 360 degrees. In the case where the y-axis is determined as the axis of the independent variable in step 108, the angle determination unit 24 calculates the angle of the slope by using equation (6) and subtracts the calculated angle from 90 degrees, thereby determining the angle of the slope of the regression line. In one example, when the angle of the slope is calculated by using equation (6), the angle determination unit 24 calculates the angle within the range of 0 to 90 degrees and 270 to 360 degrees.

[0161] Then, in step 110, the angle determination unit 24 determines the amount of rotation indicating whether to rotate the slope of the determined regression line by 180 degrees based on the displacement direction of the set of data points held in the data point buffer. In one example, in the case where the x-axis is determined as the axis of the independent variable in step 108, the angle determination unit 24 calculates each difference between the values ​​before and after in the time series on the x-axis. The angle determination unit 24 determines the amount of rotation as 180 degrees when the number of calculated negative differences is greater than the number of calculated positive differences, and determines the amount of rotation as 0 degrees when the former is less than the latter. In one example, in the case where the y-axis is determined as the axis of the independent variable in step 108, the angle determination unit 24 calculates each difference between the values ​​before and after in the time series on the y-axis. The angle determination unit 24 determines the amount of rotation as 180 degrees when the number of calculated negative differences is greater than the number of calculated positive differences, and determines the amount of rotation as 0 degrees when the former is less than the latter.

[0162] Then, in step 111, the angle determination unit 24 determines the angle based on the slope of the determined regression line and the determined amount of rotation. Specifically, the angle determination unit 24 determines the angle by adding the determined amount of rotation to the angle corresponding to the slope of the determined regression line. For example, when the amount of rotation is 0 degrees, the angle determined by the angle determination unit 24 is the angle corresponding to the slope of the determined regression line. The angle determination unit 24 outputs the angle event together with the determined angle to the state determination unit 25, and proceeds to step 112.

[0163] In a case where the number n is smaller than the variable B in step 107 , in step 113 , the angle determination unit 24 outputs a hold event to the state determination unit 25 , and proceeds to step 112 .

[0164] In step 112, the flowchart returns to step 103 unless it is terminated, for example, due to termination of the game application. The angle determination unit 24 performs the processing of steps 103 to 112 every 1 ms.

[0165] When the flowchart terminates, angle determination unit 24 deletes all data points held in the data point buffer.

[0166] Next, the main operation and advantages of the electronic device 10 according to an embodiment of the present invention will be described. This embodiment utilizes the characteristics of a projection-type electrostatic capacitive touch screen, in which six or more touch events are generated in an extremely short period of time such as 100ms when the touch screen 17 is slid with a finger. The system architecture of the software implemented by the electronic device 10 has a three-layer structure in which an angle determination unit 24, a state determination unit 25, and an application unit 26 correspond to the first layer, the second layer, and the third layer, respectively, wherein the third layer corresponds to a game application. The first layer calculates the sliding direction in the form of a linear angle of 360 degrees for a set of multiple touch events generated (a set of data points). Since the touch events generated in an extremely short period of time can be used, the first layer can continue to calculate the angle at a high speed. In addition, by obtaining the angle indicated by the set of data points held in the data point buffer only in a predefined extremely short holding period of time (e.g., 165ms), the first layer can obtain the angle of the direction intended by the user who has performed a touch operation on the touch screen 17 without having to use a reference point.

[0167] The electronic device 10 in this embodiment is designed based on the following concept: even if the user operation such as sliding is complex, the user operation can be modeled on a linear motion with a constant speed within an extremely short time period such as 100ms, and thus any nonlinear function (≈human operation) can be predicted and approximated by continuously calculating the value of the angle of the motion with a constant speed.

[0168] The first layer calculates the angle at a relatively low frequency when the value of the variable I is set to a relatively large value. In this case, even immediately after the generation of the touch event is started (for example, even immediately after the user starts the operation), the first layer calculates the angle while a relatively large number of data points are maintained in the data point buffer. As described above, by setting the value of the variable I to a relatively large value, an angle that more loosely reflects the user's operation can be calculated. On the other hand, the first layer calculates the angle at a relatively high frequency when the value of the variable I is set to a relatively small value. In this case, immediately after the generation of the touch event is started (for example, immediately after the user starts the operation), the first layer calculates the angle while a relatively small number of data points are maintained in the data point buffer. As described above, by setting the value of the variable I to a relatively small value, an angle that more immediately reflects the user's operation can be calculated.

[0169] The first layer calculates the slope of the regression line by using the least square method when calculating the angle indicated by the set of data points. In the case where x is fixed as the independent variable and y is fixed as the dependent variable, for example, it is difficult to calculate the slope in the case where the slope is in the direction along the y-axis. Therefore, the first layer determines the independent variable and the dependent variable according to the displacement amount of the data point before calculating the slope of the regression line. With this structure, the first layer can stably calculate the slope of the regression line.

[0170] When calculating the angle indicated by the set of data points, the first layer determines a rotation amount indicating whether to rotate the slope of the determined regression line by 180 degrees based on the displacement direction of the set of data points corresponding to the approximate direction in which the user moves the finger on the touch screen 17. By determining the rotation amount that cannot be grasped from the slope of the regression line calculated by using the least squares method, the angle intended by the user who has performed the touch operation on the touch screen 17 can be obtained.

[0171] The first layer calculates the angle corresponding to the sliding direction for a set of data amounts at each predefined processing time period (for example, at each time period corresponding to the frame rate of the game application as a predefined processing time period). The second layer determines the amount (angle and size) of the vector indicating the tilt state of the virtual controller at each predefined processing time period by using the continuously output angle information, and outputs the amount of the vector to the game application. Using this structure, in this embodiment, input can be provided to the game application based on the angle calculated at each predefined processing time period. In addition, using this structure, input can be provided based on an accurate moving angle at a high frequency at the frame rate calculated by the first layer without requiring any layer to use the coordinates of past touches as reference points. As described above, in this embodiment, the electronic device 10 calculates the angle without using the spatial concept of points such as the starting point (starting coordinates) and the ending point (ending coordinates) that have been used in the virtual controller in the prior art.

[0172] Furthermore, in the present embodiment, unlike the virtual controller in the prior art (i.e., the virtual controller using the vector obtained based on the positional relationship between the reference coordinates and the current indicated coordinates), the concept of the reference coordinates is not involved, which makes it possible to provide higher responsiveness than the virtual controller in which the reference coordinates are defined. In particular, in the case of an operation for switching the direction of a virtual character, etc., even if the user operates the touch screen in a direction that is very different from the direction before the switch, since there is no lack of the concept that the current indicated coordinates are close to the reference coordinates, the direction can be switched by quickly responding to the user's intention to operate, which is quite advantageous. Furthermore, using the above structure, the user operating the smart phone is allowed to operate with one hand. This makes it possible to solve the following problem: when the user operates using the virtual joystick in the prior art, the user needs to always know the reference coordinates, so there is a situation where it is difficult to operate with one hand. As described above, in the present embodiment, a virtual controller capable of faster and more intuitive operations is realized.

[0173] Furthermore, in this embodiment, unlike the virtual controller in the prior art, since the input is not based on the movement distance of the finger from the reference coordinates, the electronic device 10 can implement the operation expected by the user through an operation with a small amount of finger movement. Thus, a smaller installation area can be achieved compared to the prior art. For example, the same operability can be achieved regardless of the size of the touch screen 17.

[0174] In addition, since the virtual controller technology provided by the electronic device 10 in this embodiment is based on a mathematical model recognized from the perspective of sliding operations, the technology can be applied to various types, such as movement in 360 degrees, acceleration and deceleration, and input of commands in fighting games, etc.

[0175] Unless otherwise specifically stated, the operations and advantages described above are also applicable to other embodiments and other examples.

[0176] Another embodiment of the present invention may be a program for implementing the functions of the above-mentioned embodiment of the present invention or the information processing shown in the flowchart, or a computer-readable storage medium storing the program. In addition, another embodiment of the present invention may be a method for implementing the functions of the above-mentioned embodiment of the present invention or the information processing shown in the flowchart. In addition, another embodiment of the present invention may be a server capable of providing a computer with a program for implementing the functions of the above-mentioned embodiment of the present invention or the information processing shown in the flowchart. In addition, another embodiment of the present invention may be a virtual machine for implementing the functions of the above-mentioned embodiment of the present invention or the information processing shown in the flowchart.

[0177] Modifications of the embodiments of the present invention will now be described. The modifications described below may be appropriately combined and applied to any embodiment of the present invention unless a contradiction occurs.

[0178] In a variation, a game application is installed in the electronic device 10, which arranges virtual objects in a virtual space, and while the game is being played, presents the user with a game image captured by a virtual camera arranged in the virtual space. When the game application is executed, the electronic device 10 displays the game image obtained by photographing virtual objects arranged in the virtual space, etc., using the virtual camera arranged in the virtual space on the touch screen 17, and controls the virtual camera according to user operations. As described above, when the game application is executed, the electronic device 10 provides a virtual controller for controlling the virtual camera as the operated object according to user operations. Control of the virtual camera refers to controlling the movement or field of view of the virtual camera arranged in the virtual space.

[0179] Fig. 20 1 is a diagram showing a virtual camera 131 arranged in a virtual space for photographing an image displayed by the electronic device 10 according to an embodiment of the present invention. Fig. 20 The position of the virtual camera 131 and the viewing direction 132 of the virtual camera 132 are shown. The viewing direction 132 is defined in the form of a three-dimensional vector with a viewpoint set at the position of the virtual camera 131. A field of view area is defined with a certain viewing angle from the virtual camera 131 toward the viewing direction 132, and a two-dimensional screen 133 constituting a plane perpendicular to the viewing direction 132 is defined in the field of view area. Virtual objects in the virtual space are projected onto the two-dimensional screen 133, thereby forming a two-dimensional image.

[0180] In a modified example, the input device 12 and the display device 13 have separate forms arranged at different positions. In this case, the input device 12 is a touch screen or a device having a function equivalent to that of a projection type electrostatic capacitive touch screen. It is sufficient that the display device 13 is a device that displays an application screen or the like to a user of the electronic device 10 under the control of the processor 11. For example, the display device 13 is a liquid crystal display, a display using an organic EL, or a plasma display.

[0181] In one modification, the angle determination unit 24 calculates the slope of the regression line by using a known method other than the least square method. In this case, the angle determination unit 24 does not determine the amount of rotation indicating whether to rotate the slope of the determined regression line by 180 degrees, and thus does not determine the axis of the independent variable and the axis of the dependent variable. For example, an algorithm such as a Kalman filter or a particle filter may be used.

[0182] In a modified example, the angle determination unit 24 does not define the variable D, and does not terminate the retention of the data points held in the data point buffer that are judged to have expired for the predefined retention period. In this case, the angle determination unit 24 determines the angle while referring to the data points stored in the specific time band at each time defined by the variable I.

[0183] In one modification, the angle determination unit 24 does not define the variable V. In this case, the angle determination unit 24 calculates and determines the angle by using the function aop(x, y) regardless of the value of the variance of the independent variable.

[0184] In a modified example, the electronic device 10 is equipped with an acceleration sensor capable of determining the direction of gravity. The angle determination unit 24 determines the weight coefficient by using information obtained from the acceleration sensor. For example, when the smartphone is held in a vertical orientation and the y-axis of the touch screen 17 is the direction of gravity, the angle determination unit 24 determines w to be 2. On the other hand, when the smartphone is held in a horizontal orientation and the x-axis of the touch screen 17 is the direction of gravity, and the game engine set in the game application does not perform a conversion between vertical coordinates and horizontal coordinates, the angle determination unit 24 determines w to be a value less than 1 such as 0.5.

[0185] In a modified example, when a touch event is obtained, the angle determination unit 24 obtains a set of values ​​(x, y) consisting of two variables, and stores the set of values ​​(x, y) consisting of the two variables in the data point buffer without associating with the data point acquisition time t. For example, the angle determination unit 24 may store information corresponding to the data point acquisition time t in a storage area or the like within the storage device 14 other than the data point buffer, and may manage the information in association with the data stored in the data point buffer.

[0186] In the above-mentioned processing or operation, as long as there is no contradiction in the processing or operation (such as a contradiction that a step uses data that is not yet available in the step, etc.), the processing or operation can be freely modified. In addition, the above-mentioned examples are examples for illustrating the present invention, and the present invention is not limited to these examples. The present invention can be embodied in various forms as long as it does not deviate from the main purpose of the present invention.

[0187] Description of Reference Numerals

[0188] 10 Electronic devices

[0189] 11 Processor

[0190] 12 Input Devices

[0191] 13 Display device

[0192] 14 Storage Devices

[0193] 15 Communication devices

[0194] 16 Bus

[0195] 17 Touch screen

[0196] 21 Input unit

[0197] 22 Display unit

[0198] 23 Control unit

[0199] 24 Angle determination unit

[0200] 25 State determination unit

[0201] 26 Application Units

[0202] 31, 33, 35 degrees

[0203] 32, 34, 36 directions

[0204] 81, 82, 83, 84 regression line

[0205] 91, 92a, 92b, 93a, 93b, 94a, 94b, 94c angle

[0206] 120 Collections

[0207] 121 Virtual Characters

[0208] 122 Angle

[0209] 131 Virtual Camera

[0210] 132 Viewing direction

[0211] 133 2D Screen

Claims

1. A method performed on an electronic device equipped with a touch screen, the method The following steps are involved: maintaining data points indicated by values ​​on the first axis and values ​​on the second axis, obtained based on a touch event generated as a result of a user's operation on the touch screen; Terminating retention of data points whose predefined retention time period has expired among the retained data points; determining, based on the retained data points, a slope of a regression line obtained from all data points in the set of retained data points; determining, based on the displacement direction of the set of retained data points, an amount of rotation to be made by an angle corresponding to the slope of the determined regression line; as well as Based on the determined slope of the regression line and the determined amount of rotation, an angle at which the user controls the manipulated object in the virtual space is determined.

2. The method according to claim 1, in, In the step of determining the rotation amount, When determining the angle for controlling the operated object, the amount of rotation indicating whether to rotate the angle corresponding to the slope of the determined regression line by 180 degrees is determined based on the displacement direction of the previous and next data points in the time series among the retained data points.

3. The method according to claim 1, further comprising: The following steps are involved: determining one of the first axis and the second axis as an axis of an independent variable and determining the other axis as an axis of a dependent variable based on a shift amount of a value on the first axis and a shift amount of a value on the second axis in the held data points, and In the step of determining the slope of the regression line, The slope of the regression line is further determined based on the determined axis of the independent variable and the axis of the dependent variable.

4. The method according to claim 3, in, In the step of determining one of the first axis and the second axis, One of the first axis and the second axis is determined as an axis of an independent variable based on a difference between a maximum value and a minimum value of values ​​on the first axis and a difference between a maximum value and a minimum value of values ​​on the second axis in the held data points.

5. The method according to claim 3 or 4, in, In the step of determining one of the first axis and the second axis, One of the first axis and the second axis is determined as the axis of the independent variable by comparing the size of the result of applying the weight to the difference between the maximum value and the minimum value of the values ​​on the first axis among the retained data points with the size of the difference between the maximum value and the minimum value of the values ​​on the second axis.

6. The method according to claim 3 or 4, in, In the step of determining the rotation amount, When determining the angle for controlling the operated object, the amount of rotation indicating whether the angle corresponding to the slope of the determined regression line is to be rotated 180 degrees is determined by comparing the number of positive values ​​and the number of negative values ​​in the difference between the values ​​on the axis of the determined independent variable before and after in the time series in the retained data points.

7. The method according to claim 3 or 4, in, The step of determining the slope of the regression line comprises the following steps: Determine the mean of the independent variable and the mean of the dependent variable among the retained data points; determining the deviation of the independent variable and the deviation of the dependent variable in the retained data points by using the determined mean values; determining the variance of the independent variable in the retained data points by using the determined deviation of the independent variable; determining the covariance among the retained data points by using the determined deviance of the independent variable and the deviance of the dependent variable; and The slope of the regression line is determined by dividing the determined covariance by the determined variance of the independent variable.

8. The method according to claim 7, in, The first axis is an X-axis indicating a short side direction of a direction in which sensors of the touch screen are arranged. The second axis is a Y axis indicating a long side direction in a direction in which sensors of the touch screen are arranged, and the second axis is perpendicular to the first axis, and In the step of determining the slope of the regression line, In a case where the determined axis of the independent variable is the second axis, the slope of the regression line is determined by subtracting an angle corresponding to the slope of the regression line determined by dividing the determined covariance by the determined variance of the independent variable from 90 degrees.

9. The method according to any one of claims 1 to 4, in, The first axis is an X axis indicating a short side direction in a direction in which sensors of the touch screen are arranged, and the second axis is a Y axis indicating a long side direction in a direction in which sensors of the touch screen are arranged, and the second axis is perpendicular to the first axis.

10. The method according to any one of claims 1 to 4, in, In the step of determining the angle, The angle is determined per predefined processing time period.

11. A method for playing a game, the game being executed on an electronic device equipped with a touch screen, the method for playing a game comprising the method according to claim 10, in, The predefined processing time period is a time period corresponding to a frame rate for executing the game, The method for gaming also includes the following steps: determining an angle and a size per each of the predefined processing time periods based on the angle determined per each of the predefined processing time periods; and The operated object displayed on the touch screen is controlled based on the angle and size determined per the predefined processing time period.

12. A method for playing a game, the game being executed on an electronic device equipped with a touch screen, the method for playing a game comprising the method according to claim 10, in, The predefined processing time period is a time period corresponding to a frame rate for executing the game, The method for gaming also includes the following steps: determining an angle and a size per each of the predefined processing time periods based on the angle determined per each of the predefined processing time periods; and A virtual camera for photographing a game image is controlled based on the angle and size determined per the predefined processing time period, the virtual camera serving as the operated object displayed on the touch screen.

13. An electronic device equipped with a touch screen, in, maintaining data points indicated by values ​​on the first axis and values ​​on the second axis, obtained based on a touch event generated as a result of a user's operation on the touch screen; Terminating retention of data points whose predefined retention time period has expired among the retained data points; determining, based on the retained data points, a slope of a regression line obtained from all data points in the set of retained data points; determining, based on the displacement direction of the set of retained data points, an amount of rotation to be made by an angle corresponding to the slope of the determined regression line; as well as Based on the determined slope of the regression line and the determined amount of rotation, an angle at which the user controls the manipulated object in the virtual space is determined.

14. A computer-readable storage medium storing a program executed on an electronic device equipped with a touch screen, the program causing the electronic device to perform the following steps: maintaining data points indicated by values ​​on the first axis and values ​​on the second axis, obtained based on a touch event generated as a result of a user's operation on the touch screen; Terminating retention of data points whose predefined retention time period has expired among the retained data points; determining, based on the retained data points, a slope of a regression line obtained from all data points in the set of retained data points; determining, based on the displacement direction of the set of retained data points, an amount of rotation to be made by an angle corresponding to the slope of the determined regression line; as well as Based on the determined slope of the regression line and the determined amount of rotation, an angle at which the user controls the manipulated object in the virtual space is determined.

15. A computer-readable storage medium storing a program group for a game, the game being executed on an electronic device equipped with a touch screen, the program group comprising a program for causing the electronic device to execute the method according to claim 10, in, The predefined processing time period is a time period corresponding to a frame rate for executing the game, The program group enables the following steps to be performed: determining an angle and a size per each of the predefined processing time periods based on the angle determined per each of the predefined processing time periods; and The operated object displayed on the touch screen is controlled based on the angle and size determined per the predefined processing time period.

16. A computer-readable storage medium storing a program group for a game, the game being executed on an electronic device equipped with a touch screen, the program group comprising a program for causing the electronic device to execute the method according to claim 10, in, The predefined processing time period is a time period corresponding to a frame rate for executing the game, The program group enables the following steps to be performed: determining an angle and a size per each of the predefined processing time periods based on the angle determined per each of the predefined processing time periods; and A virtual camera for photographing a game image is controlled based on the angle and size determined per the predefined processing time period, the virtual camera serving as the operated object displayed on the touch screen.