Touch method and device, terminal equipment and storage medium

文档序号:1627669 发布日期:2020-01-14 浏览:11次 中文

阅读说明:本技术 触控方法、装置、终端设备和存储介质 (Touch method and device, terminal equipment and storage medium ) 是由 金东洙 韦行海 于 2019-08-30 设计创作,主要内容包括:本申请实施例提供了一种触控方法、装置、终端设备和存储介质,该触控方法可以应用于人工智能领域,执行该触控方法的装置可以为终端设备,该终端设备可以为手机。该触控方法通过预先在终端设备中存储目标应用程序对应的目标按键和目标位置的映射关系,该映射关系表征用户按压目标按键时相当于点击用户界面上与目标按键存在映射关系的目标位置,进而可以根据该映射关系将执行用户按压侧边键的操作转化为点击用户界面上的位置触发的操作。本申请实施例中提供的触控方法能够通过按压侧边键实现点击目标位置触发的操作,能够在不遮挡用户界面的同时,实现对用户界面的目标位置的点击。(The embodiment of the application provides a touch method, a touch device, terminal equipment and a storage medium. According to the touch control method, the mapping relation between the target key and the target position corresponding to the target application program is stored in the terminal equipment in advance, the mapping relation represents that when a user presses the target key, the target position corresponding to the target key on the user interface is clicked, and the mapping relation exists between the target key and the target position, and therefore the operation of pressing the side key by the user can be converted into the operation triggered by clicking the position on the user interface according to the mapping relation. According to the touch method provided by the embodiment of the application, the operation triggered by clicking the target position can be realized by pressing the side key, and the target position of the user interface can be clicked while the user interface is not shielded.)

1. A touch method, comprising:

receiving a first instruction triggered by a user through a target key, wherein the target key is a side key of the terminal equipment;

and if the terminal equipment currently displays the user interface of the target application program, executing operation triggered by clicking a target position on the user interface according to the first instruction, wherein the target key in the target application program has a mapping relation with the target position, and the target position is one position in a user interface coordinate system of the target application program.

2. The method of claim 1, further comprising:

receiving a second instruction input by the user, wherein the second instruction is used for indicating to enter a setting interface of the target application program;

displaying the setting interface;

and when the user is detected to press the target key and click the target position, establishing a mapping relation between the target key and the target position.

3. The method of claim 2, wherein the detecting that the user pressed the target key and clicked on the target location comprises:

and receiving the first instruction and a third instruction triggered by clicking the target position by the user.

4. The method of claim 2,

the setting interface comprises a text box, and the text box is used for pushing information of the setting mode of the mapping relation.

5. The method of claim 2, further comprising:

and if a selection instruction of the user for the first control on the setting interface is received, exiting the setting interface.

6. The method of claim 2, wherein prior to receiving the second instruction of the user input, further comprising:

and displaying a navigation interface, wherein a second control is displayed on the navigation interface, and the selection of the second control by the user is used for triggering and inputting the second instruction.

7. The method according to any one of claims 2-6, further comprising:

and if the target position is not within the coverage range of the control displayed on the setting interface, outputting reminding information, wherein the reminding information is used for reminding a user whether to map the target key and the target position.

8. The method of claim 1, further comprising:

and if the terminal equipment currently displays a user interface which is not the target application program, executing the operation triggered by pressing the target key according to the first instruction.

9. The method of any one of claims 1, wherein the target key is a mechanical key or a touch key.

10. The method according to any one of claims 1, wherein the target key is a volume key and/or an on/off key.

11. A touch device, comprising:

the terminal device comprises a transceiving module, a display module and a control module, wherein the transceiving module is used for receiving a first instruction triggered by a user through a target key, and the target key is a side key of the terminal device;

and the processing module is used for executing operation triggered by clicking a target position on the user interface according to the first instruction if the user interface of the target application program is currently displayed by the terminal equipment, wherein the target key in the target application program has a mapping relation with the target position, and the target position is one position in a user interface coordinate system of the target application program.

12. The apparatus of claim 11, further comprising: a display module;

the transceiver module is further configured to receive a second instruction input by the user, where the second instruction is used to instruct to enter a setting interface of the target application program;

the display module is used for displaying the setting interface;

the processing module is further configured to establish a mapping relationship between the target key and the target position when it is detected that the user presses the target key and clicks the target position.

13. The apparatus of claim 12,

the transceiver module is further configured to receive the first instruction and a third instruction triggered by the user by clicking the target location;

the processing module is specifically configured to determine that the user presses the target key and clicks the target location when the transceiver module receives the first instruction and the third instruction triggered by the user clicking the target location.

14. The apparatus of claim 12,

the setting interface comprises a text box, and the text box is used for pushing information of the setting mode of the mapping relation.

15. The apparatus of claim 12,

the transceiver module is further configured to receive a selection instruction of the user for a first control on the setting interface;

the processing module is further configured to quit the setting interface when the transceiver module receives a selection instruction of the user for the first control on the setting interface.

16. The apparatus of claim 12,

the display module is further configured to display a navigation interface, a second control is displayed on the navigation interface, and the selection of the second control by the user is used for triggering the input of the second instruction.

17. The apparatus according to any one of claims 12 to 16,

the processing module is further configured to output a reminding message when the target position is not within a coverage range of a control displayed on the setting interface, where the reminding message is used to remind a user whether to map the target key with the target position.

18. The apparatus of claim 11,

and the processing module is further configured to execute an operation triggered by pressing the target key according to the first instruction when the terminal device currently displays a user interface other than the target application program.

19. The device of any one of claim 11, wherein the target key is a mechanical key or a touch key.

20. The device of any one of claim 11, wherein the target key is a volume key and/or an on/off key.

21. A terminal device, characterized in that a computer program is stored on the terminal device, which computer program, when executed by the terminal device, implements the method according to any one of claims 1-10.

22. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of any one of claims 1-10.

27页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种触摸屏的使用方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类