CN-109745699-B - Method for responding to touch operation and terminal equipment
Abstract
The invention provides a method for responding to touch operation and terminal equipment, wherein the method comprises the steps of receiving touch operation of a target user on a current display interface, determining operation information corresponding to the touch operation under the condition that the touch operation is not matched with any control in the current display interface, determining a target control from the current display interface according to the operation information, and executing a touch instruction corresponding to the touch operation through the target control. Under the condition that the touch operation matching control fails (misoperation), the target control (correct touch operation) can be determined according to the operation information, and response is performed, so that the user experience when the operation is lost can be improved.
Inventors
- LIN SHIYA
Assignees
- 维沃移动通信有限公司
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260421
- Application Date
- 20181229
- Priority Date
- 20181229
Claims (8)
- 1. A method for responding to touch operation, applied to a terminal device, characterized in that the method comprises the following steps: receiving touch operation of a target user on a current display interface; Determining operation information corresponding to the touch operation under the condition that the touch operation is not matched with any control in the current display interface; Determining a target control from the current display interface according to the operation information, and executing a touch instruction corresponding to the touch operation through the target control; before the step of receiving the touch operation of the target user on the current display interface, the method further comprises: Receiving a first touch operation of the target user on a candidate display interface, wherein operation information of the first touch operation comprises a first operation position and a first operation type; determining whether a second touch operation is received within a preset time or not under the condition that the first touch operation is not matched with any control in the candidate display interface; And under the condition that the second touch operation is received and matched with one of the controls in the candidate display interface, respectively adding the first operation position, the first operation type and the one of the controls as a candidate operation position, a candidate operation type and a candidate control into an operation instruction model of the target user according to a corresponding relation.
- 2. The method of claim 1, wherein the step of determining a target control from the current display interface according to the operation information comprises: acquiring an operation instruction model of the target user; And acquiring a target control from the operation instruction model according to the operation information.
- 3. The method of claim 2, wherein the operation information comprises a current operation position and a current operation type, and the step of obtaining a target control from the operation instruction model according to the operation information comprises the steps of: Obtaining candidate operation data from the operation instruction model, wherein the candidate operation data comprises a candidate operation position, a candidate operation type and a candidate control; And taking the candidate control as a target control under the condition that the current operation position is consistent with the candidate operation position and the current operation type is consistent with the candidate operation type.
- 4. The method according to claim 1, wherein after the step of adding the first operation position, the first operation type, the one control as a candidate operation position, a candidate operation type, and a candidate control, respectively, to the operation instruction model of the target user in correspondence relation, the method further comprises: And storing the operation instruction model of the target user into a remote server by taking the target user identification as key information.
- 5. A terminal device, characterized in that the terminal device comprises: the touch operation receiving module is used for receiving touch operation of a target user on a current display interface; The operation information determining module is used for determining operation information corresponding to the touch operation under the condition that the touch operation is not matched with any control in the current display interface; the touch instruction execution module is used for determining a target control from the current display interface according to the operation information, and executing a touch instruction corresponding to the touch operation through the target control; the terminal device further includes: The first touch operation receiving module is used for receiving first touch operation of the target user on the candidate display interface, and the operation information of the first touch operation comprises a first operation position and a first operation type; the second touch operation receiving module is used for determining whether a second touch operation is received within a preset time or not under the condition that the first touch operation is not matched with any control in the candidate display interface; and the operation instruction model updating module is used for respectively adding the first operation position, the first operation type and one of the controls serving as a candidate operation position, a candidate operation type and a candidate control into the operation instruction model of the target user according to a corresponding relation under the condition that the second touch operation is received and the second touch operation is matched with one of the controls in the candidate display interface.
- 6. The terminal device of claim 5, wherein the touch instruction execution module comprises: an operation instruction model obtaining sub-module, configured to obtain an operation instruction model of the target user; and the target control acquisition sub-module is used for acquiring the target control from the operation instruction model according to the operation information.
- 7. The terminal device of claim 6, wherein the operation information includes a current operation position and a current operation type, and the target control acquisition sub-module includes: the candidate operation data acquisition unit is used for acquiring one candidate operation data from the operation instruction model, wherein the candidate operation data comprises a candidate operation position, a candidate operation type and a candidate control; And the effective operation instruction determining unit is used for taking the candidate control as a target control when the current operation position is consistent with the candidate operation position and the current operation type is consistent with the candidate operation type.
- 8. The terminal device according to claim 5, characterized in that the terminal device further comprises: And the operation instruction model storage module is used for storing the operation instruction model of the target user into a remote server by taking the target user identification as key information.
Description
Method for responding to touch operation and terminal equipment Technical Field The present invention relates to the field of terminal devices, and in particular, to a method for responding to touch operation and a terminal device. Background When the game application is run on the terminal equipment, the user can perform game control operation through virtual keys on the game interface. The relative positions of the virtual keys are fixed for the same game interface. However, for different terminal devices, due to the different sizes and horizontal-vertical ratios of the screens, when the same game interface runs on the terminal devices with different screens, the absolute positions of the virtual keys on the screens can be adaptively adjusted. For example, when switching from a small screen to a large screen, the number of virtual keys is unchanged, so that the size of the virtual keys needs to be increased, and thus the position of each virtual key on the screen is also changed. However, because the absolute position of the virtual key on the screen changes, the user can habitually click the virtual key according to the original position in the use process, so that misoperation is caused, the virtual key is not responded, and the user experience is poor. Disclosure of Invention The embodiment of the invention provides a method for responding to touch operation and terminal equipment, which are used for solving the problem of poor user experience caused by misoperation of a user when the absolute position of a virtual key on a screen changes. In one aspect, an embodiment of the present invention discloses a method for responding to a touch operation, which is applied to a terminal device, and the method includes: receiving touch operation of a target user on a current display interface; Determining operation information corresponding to the touch operation under the condition that the touch operation is not matched with any control in the current display interface; And determining a target control from the current display interface according to the operation information, and executing a touch instruction corresponding to the touch operation through the target control. On the other hand, the embodiment of the invention also discloses a terminal device, which comprises: the touch operation receiving module is used for receiving touch operation of a target user on a current display interface; The operation information determining module is used for determining operation information corresponding to the touch operation under the condition that the touch operation is not matched with any control in the current display interface; And the touch instruction execution module is used for determining a target control from the current display interface according to the operation information, and executing a touch instruction corresponding to the touch operation through the target control. In still another aspect, an embodiment of the present invention further discloses a terminal device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program when executed by the processor implements the steps of the method for responding to touch operations as described in any one of the above. In a final aspect, the embodiment of the present invention further discloses a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the steps of the method for responding to touch operations as described in any one of the above. In the embodiment of the invention, the touch operation of a target user on a current display interface is received, the operation information corresponding to the touch operation is determined under the condition that the touch operation is not matched with any control in the current display interface, the target control is determined from the current display interface according to the operation information, and the touch instruction corresponding to the touch operation is executed through the target control. Under the condition that the touch operation matching control fails (misoperation), the target control (correct touch operation) can be determined according to the operation information, and response is performed, so that the user experience when the operation is lost can be improved. The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious