CN111443859B - Touch interaction method and electronic equipment - Google Patents

Touch interaction method and electronic equipment Download PDF

Info

Publication number
CN111443859B
CN111443859B CN202010214336.3A CN202010214336A CN111443859B CN 111443859 B CN111443859 B CN 111443859B CN 202010214336 A CN202010214336 A CN 202010214336A CN 111443859 B CN111443859 B CN 111443859B
Authority
CN
China
Prior art keywords
target
virtual key
touch
user
touch screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010214336.3A
Other languages
Chinese (zh)
Other versions
CN111443859A (en
Inventor
王智鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010214336.3A priority Critical patent/CN111443859B/en
Publication of CN111443859A publication Critical patent/CN111443859A/en
Application granted granted Critical
Publication of CN111443859B publication Critical patent/CN111443859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例公开了一种触控交互方法及电子设备。该方法包括:接收用户对电子设备的触控屏中目标位置的目标输入;响应于目标输入,确定目标位置对应的目标触感参数;将目标位置处的触感参数调整为目标触感参数。利用本发明实施例能够解决触屏操作准确性较低的问题。

Figure 202010214336

Embodiments of the present invention disclose a touch interaction method and an electronic device. The method includes: receiving a user's target input on a target position on a touch screen of an electronic device; determining a target touch parameter corresponding to the target position in response to the target input; and adjusting the touch parameter at the target position to the target touch parameter. By using the embodiments of the present invention, the problem of low accuracy of touch screen operation can be solved.

Figure 202010214336

Description

一种触控交互方法及电子设备A touch interaction method and electronic device

技术领域technical field

本发明实施例涉及触控技术领域,尤其涉及一种触控交互方法及电子设备。Embodiments of the present invention relate to the field of touch technology, and in particular, to a touch interaction method and an electronic device.

背景技术Background technique

目前,用户在使用触控屏的电子设备时,由于触控屏的材质通常是均匀光滑的材质,用户在进行触屏操作时无法直观的感受到自己正在操作的区域位置,使得在用户无法清晰看到触控屏等情况下,用户的触屏操作容易滑出自己正在操作的区域,导致误操作或者操作失败等情况,用户使用感较差,触屏操作准确性较低。At present, when a user is using an electronic device with a touch screen, since the material of the touch screen is usually a uniform and smooth material, the user cannot intuitively feel the position of the area he is operating when performing a touch screen operation. When seeing the touch screen, etc., the user's touch screen operation easily slides out of the area he is operating, resulting in misoperation or operation failure, etc., the user has a poor sense of use, and the accuracy of the touch screen operation is low.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种触控交互方法及电子设备,以解决触屏操作准确性较低的问题。Embodiments of the present invention provide a touch interaction method and an electronic device to solve the problem of low accuracy of touch screen operations.

第一方面,本发明实施例提供了一种触控交互方法,应用于电子设备,包括:In a first aspect, an embodiment of the present invention provides a touch interaction method, applied to an electronic device, including:

接收用户对所述电子设备的触控屏中目标位置的目标输入;receiving a user's target input for a target position in the touch screen of the electronic device;

响应于所述目标输入,确定所述目标位置对应的目标触感参数;In response to the target input, determining a target haptic parameter corresponding to the target position;

将所述目标位置处的触感参数调整为所述目标触感参数。The haptic parameters at the target position are adjusted to the target haptic parameters.

第二方面,本发明实施例还提供了一种电子设备,包括:In a second aspect, an embodiment of the present invention also provides an electronic device, including:

接收模块,用于接收用户对所述电子设备的触控屏中目标位置的目标输入;a receiving module, configured to receive a user's target input to a target position in the touch screen of the electronic device;

参数确定模块,用于响应于所述目标输入,确定所述目标位置对应的目标触感参数;a parameter determination module, configured to determine a target haptic parameter corresponding to the target position in response to the target input;

第一调整模块,用于将所述目标位置处的触感参数调整为所述目标触感参数。The first adjustment module is configured to adjust the haptic parameter at the target position to the target haptic parameter.

第三方面,本发明实施例提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的触控交互方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program is executed by the processor When implementing the steps of the touch interaction method described in the first aspect.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的触控交互方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the touch interaction as described in the first aspect is implemented steps of the method.

在本发明实施例中,在接收到用户在触控屏中目标位置处的目标输入后,会确定该目标位置对应的目标触感参数,并将目标位置处的触感参数调整为目标触感参数,从而在目标位置处模拟出与该目标位置关联的目标触感。这种方式下,只要通过为不同的触控屏位置关联不同的触感参数,即能够使用户在进行触屏操作时,能够清晰的感知到自己正在操作的区域,即使在视线较差的环境下或者用户没有查看触控屏等情况时,也能够尽可能避免误操作的情况出现,提高了用户触屏操作的准确性。In the embodiment of the present invention, after receiving the target input from the user at the target position on the touch screen, the target tactile parameter corresponding to the target position is determined, and the tactile parameter at the target position is adjusted to the target tactile parameter, thereby A target haptic sensation associated with the target location is simulated at the target location. In this way, as long as different touch-sensitive parameters are associated with different touch-screen positions, users can clearly perceive the area they are operating when performing touch-screen operations, even in an environment with poor line of sight. Or when the user does not check the touch screen or the like, misoperation can be avoided as much as possible, which improves the accuracy of the user's touch screen operation.

附图说明Description of drawings

从下面结合附图对本发明的具体实施方式的描述中可以更好地理解本发明其中,相同或相似的附图标记表示相同或相似的特征。The present invention can be better understood from the following description of specific embodiments of the present invention in conjunction with the accompanying drawings, wherein the same or similar reference numerals denote the same or similar features.

图1为本发明实施例提供的一种触控交互方法的流程示意图;FIG. 1 is a schematic flowchart of a touch interaction method according to an embodiment of the present invention;

图2为本发明实施例提供的另一种触控交互方法的流程示意图;FIG. 2 is a schematic flowchart of another touch interaction method according to an embodiment of the present invention;

图3为本发明实施例提供的一种虚拟按键位置示意图;3 is a schematic diagram of a virtual key position according to an embodiment of the present invention;

图4为本发明实施例提供的另一种虚拟按键位置示意图;4 is a schematic diagram of another virtual key position according to an embodiment of the present invention;

图5为本发明实施例提供的一种电子设备的结构示意图;5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;

图6为本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

目前,用户在使用触控屏的电子设备时,会与触控屏进行触屏交互,而由于用户在进行触屏操作时可能无法直观的感受到自己正在操作的区域位置,用户的触屏操作容易滑出自己正在操作的区域,导致误操作或者操作失败等情况,触屏操作准确性较低,并且用户使用感较差。At present, when a user uses an electronic device with a touch screen, he/she interacts with the touch screen. Since the user may not be able to intuitively feel the location of the area he is operating when performing a touch screen operation, the user's touch screen operation It is easy to slide out of the area that you are operating, resulting in misoperation or failure of operation, etc., the touch screen operation accuracy is low, and the user has a poor sense of use.

例如,在通过电子设备玩游戏时,主要是在触控屏上划分一些区域作为多个虚拟按键,然后通过记录用户在这些虚拟按键上的点击、滑动以及长按等操作,完成用户对于游戏的操作。但是由于用户对各个虚拟按键的触感相同,因此容易对虚拟按键进行误操作,且用户与虚拟按键交互没有有效的物理反馈,体验不好。For example, when playing a game through an electronic device, some areas are mainly divided on the touch screen as multiple virtual buttons, and then the user's click, slide, and long press operations on these virtual buttons are recorded to complete the user's game. operate. However, since the user has the same tactile feeling on each virtual key, it is easy to mis-operate the virtual key, and there is no effective physical feedback for the user to interact with the virtual key, and the experience is not good.

为了解决该问题,本发明实施例提供了一种触控交互方法,参见图1,图1示出了本发明实施例提供的一种触控交互方法的流程示意图;该方法应用于电子设备,包括:To solve this problem, an embodiment of the present invention provides a touch interaction method. Referring to FIG. 1, FIG. 1 shows a schematic flowchart of a touch interaction method provided by an embodiment of the present invention; the method is applied to an electronic device, include:

S101、接收用户对电子设备的触控屏中目标位置的目标输入;S101. Receive a user's target input to a target position on a touch screen of an electronic device;

S102、响应于目标输入,确定目标位置对应的目标触感参数;S102, in response to the target input, determine the target touch parameter corresponding to the target position;

由于本发明的目的,是为了使触摸屏上的不同位置处能够产生不同触感从而使用户区分自己当前所触摸的区域,例如,这里的触感可以为模拟橡胶按钮的触感等。因此不同的触控屏位置应该对应有自己独立的触感,而为了产生这种独立的触感,则需要通过设置触感参数来实现,接收到用户对电子设备的触控屏中目标位置的目标输入,获取该目标位置的触感参数,不同的触感参数,会使用户产生不同的触感。The purpose of the present invention is to generate different tactile sensations at different positions on the touch screen so that the user can distinguish the area he is currently touching. Therefore, different touch screen positions should have their own independent tactile sensations. In order to generate such independent tactile sensations, it is necessary to set tactile sensation parameters to achieve the target input from the user to the target position in the touch screen of the electronic device. The tactile parameters of the target position are obtained, and different tactile parameters will cause the user to have different tactile sensations.

S103、将目标位置处的触感参数调整为目标触感参数。S103. Adjust the tactile parameter at the target position to the target tactile parameter.

以上各个步骤的具体实现方式将在下文中进行详细描述。The specific implementation of the above steps will be described in detail below.

在本发明实施例中,在接收到用户在电子设备的触控屏中目标位置处的目标输入后,会确定该目标位置对应的目标触感参数,并将目标位置处的触感参数调整为目标触感参数,从而在目标位置处模拟出与该目标位置关联的目标触感。这种方式下,只要通过为不同的触控屏位置关联不同的触感参数,即能够使用户在进行触屏操作时,能够清晰的感知到自己正在操作的区域,即使在视线较差的环境下或者用户没有查看触控屏等情况时,也能够尽可能避免误操作的情况出现,提高了用户触屏操作的准确性。In the embodiment of the present invention, after receiving the user's target input at the target position on the touch screen of the electronic device, the target tactile parameter corresponding to the target position is determined, and the tactile parameter at the target position is adjusted to the target tactile sensation parameters, thereby simulating the target haptic sensation associated with the target position at the target position. In this way, as long as different touch-sensitive parameters are associated with different touch-screen positions, users can clearly perceive the area they are operating when performing touch-screen operations, even in an environment with poor line of sight. Or when the user does not check the touch screen or the like, misoperation can be avoided as much as possible, which improves the accuracy of the user's touch screen operation.

在本发明一些实施例中,上述目标触感参数可以包括:电流或者超声波。In some embodiments of the present invention, the above-mentioned target haptic parameters may include: current or ultrasonic waves.

其中,触控屏的电流影响用户触感的原理为:基于不同的触控屏电流,触控屏上会产生不同的电磁脉冲,而电磁脉冲会影响用户与触控屏接触的部位与触控屏之间的静电引力,使得用户感受到不同大小的摩擦力,而摩擦力不同,用户即会感受到不同的触感,因此通过控制触控屏上各个区域的电流值,即能够使用户在触摸触控屏上各个区域时产生不同的触感,从而使触摸屏达到模拟现实材质的触感的效果。Among them, the principle that the current of the touch screen affects the user's tactile sense is: based on different touch screen currents, different electromagnetic pulses will be generated on the touch screen, and the electromagnetic pulse will affect the part where the user contacts the touch screen and the touch screen. The electrostatic attraction between the two makes the user feel different frictional forces, and the frictional force is different, the user will feel different tactile sensations, so by controlling the current value of each area on the touch screen, the user can feel Different tactile sensations are generated when controlling various areas on the screen, so that the touch screen can achieve the effect of simulating the tactile sensation of real materials.

而触控屏产生的超声波影响用户触感的原理为:超声波会对用户的手指产生震动的效果,超声波强度不同,则用户手指感受到的震感也会不同,即能够使用户与触控屏接触的部位在触控屏各个区域上感受到不同的触感,从而模拟现实材质中不同位置具有不同触感的效果。The principle that the ultrasonic wave generated by the touch screen affects the user's tactile sensation is that the ultrasonic wave will vibrate the user's finger. The intensity of the ultrasonic wave is different, the vibration sensation felt by the user's finger will also be different, even if the user can touch the touch screen. The parts feel different tactile sensations on various areas of the touch screen, thereby simulating the effect of different tactile sensations in different positions in the real material.

当然,以上仅为两种具体实施例,这里的目标触感参数还可以是其它能够影响用户触感的参数,本发明对此不做限定。Of course, the above are only two specific embodiments, and the target haptic parameter here may also be other parameters that can affect the user's haptic, which is not limited in the present invention.

在本发明一些实施例中,参见图2,图2示出了本发明实施例提供的另一种触控交互方法的流程示意图。该方法可以包括:In some embodiments of the present invention, referring to FIG. 2 , FIG. 2 shows a schematic flowchart of another touch interaction method provided by an embodiment of the present invention. The method can include:

S201、接收用户对目标应用的显示界面内目标位置的目标输入;S201, receiving a target input from a user to a target position in a display interface of a target application;

不同的应用中,用户进行触摸输入的区域不同,并且用户想要感受到的触感也是不同的,因此,在接收目标输入后,需要确定当前接收到的目标输入对应的目标应用是哪个,进而方便后续确定对应的触感参数调整方式。In different applications, the area where the user performs touch input is different, and the tactile sensation the user wants to feel is also different. Therefore, after receiving the target input, it is necessary to determine which target application corresponds to the currently received target input, so as to facilitate The corresponding haptic parameter adjustment method is subsequently determined.

S202、响应于目标输入,根据目标应用中的虚拟按键与触控屏位置的第一预设对应关系,确定目标位置对应的目标虚拟按键;S202. In response to the target input, determine the target virtual key corresponding to the target position according to the first preset correspondence between the virtual key in the target application and the position of the touch screen;

其中,电子设备内可以预先保存有各个目标应用的应用包名,每个应用包名关联有一组虚拟按键与触控屏位置的第一预设对应关系,在接收到目标输入后,可以根据目标应用的应用包名来查找该目标应用所对应的第一预设对应关系。The electronic device may pre-store the application package name of each target application, and each application package name is associated with a first preset correspondence between a set of virtual keys and the position of the touch screen. The application package name of the application is used to find the first preset correspondence corresponding to the target application.

S203、根据虚拟按键与触感参数的第二预设对应关系,确定目标虚拟按键对应的目标触感参数。S203: Determine a target haptic parameter corresponding to the target virtual button according to the second preset correspondence between the virtual button and the haptic parameter.

此外,电子设备内还可以预先保存有与各个应用包名关联的一组虚拟按键与触感参数的第二预设对应关系,使得在确定目标虚拟按键后,能够根据所确定的目标虚拟按键查找对应的目标触感参数。并且,为了方便用户对不同的虚拟按键进行区分,第二预设对应关系中,不同的虚拟按键对应的触感参数不同。In addition, the electronic device may also pre-store a second preset correspondence between a group of virtual keys associated with each application package name and the tactile parameters, so that after the target virtual key is determined, the corresponding virtual key can be searched according to the determined target virtual key. target haptic parameters. Moreover, in order to facilitate the user to distinguish different virtual keys, in the second preset corresponding relationship, different virtual keys correspond to different tactile parameters.

S204、将目标位置处的触感参数调整为目标触感参数。S204. Adjust the tactile parameter at the target position to the target tactile parameter.

本实施例中,将目标位置限定为目标应用中的虚拟按键的位置,虚拟按键与触控屏位置的第一预设对应关系能够用来确定各个虚拟按键在触控屏中所处的位置,并且本实施例还设置有各个虚拟按键与触感参数的第二预设对应关系,即限定了各个虚拟按键所对应的触感,因此本实施例能够使用户在使用目标应用时,各个虚拟按键会产生不同的目标触感,从而使得用户能够直观的确定当前点击的虚拟按键的位置,提高用户的使用效果,减少误操作的可能。In this embodiment, the target position is defined as the position of the virtual key in the target application, and the first preset correspondence between the virtual key and the position of the touch screen can be used to determine the position of each virtual key in the touch screen, In addition, this embodiment is also provided with a second preset corresponding relationship between each virtual button and the tactile parameter, that is, the tactile sensation corresponding to each virtual button is limited. Therefore, in this embodiment, when the user uses the target application, each virtual button will generate Different target touch senses enable the user to intuitively determine the position of the currently clicked virtual key, improve the user's use effect, and reduce the possibility of misoperation.

可选的,第二预设对应关系中的触感参数可以用于模拟预设型号的游戏手柄的触感。Optionally, the tactile parameter in the second preset corresponding relationship may be used to simulate the tactile sensation of a gamepad of a preset model.

由于游戏是需要对多个虚拟按键进行频繁操作的一种应用,且游戏中需要对虚拟按键的位置进行较为准确的操作,但用户在玩游戏的过程中眼睛经常没有看着虚拟按键的操作区,因此非常容易导致误操作。基于此,在目标应用为游戏应用时,本实施例可以模拟预设型号的游戏手柄的触感,使得用户在使用电子设备进行游戏时,能够具有通过游戏手柄进行操作时的触感效果,从而使得用户在未查看虚拟按键区域的过程中,也能够准确的找到想要的虚拟按键位置,提高了用户使用电子设备玩游戏时的体验。Because the game is an application that requires frequent operations on multiple virtual buttons, and the position of the virtual buttons needs to be operated more accurately in the game, the user often does not look at the operation area of the virtual buttons during the game. , so it is very easy to cause misoperation. Based on this, when the target application is a game application, this embodiment can simulate the tactile sensation of a gamepad of a preset model, so that when the user uses an electronic device to play a game, the tactile effect of the operation through the gamepad can be obtained, so that the user can In the process of not checking the virtual key area, the desired virtual key position can also be accurately found, which improves the user's experience when playing games using the electronic device.

此外,由于用户可能会想要更换虚拟按键的触感,因此,在本发明的其他一些实施例中,用户可以自行选择想要的虚拟按键位置和对应的触感。可选的,在S201之前,该方法还可以包括:In addition, since the user may want to change the tactile sensation of the virtual key, in some other embodiments of the present invention, the user can select the desired virtual key position and the corresponding tactile sensation by himself. Optionally, before S201, the method may further include:

接收用户对目标应用的应用包名关联的至少一组虚拟按键与触控屏位置的预设对应关系中的目标预设对应关系的选择输入;Receive the user's selection input of the target preset correspondence in the preset correspondence between at least one group of virtual keys associated with the application package name of the target application and the position of the touch screen;

响应于选择输入,将选择输入对应的目标预设对应关系作为第一预设对应关系。In response to the selection input, the target preset correspondence relationship corresponding to the selection input is used as the first preset correspondence relationship.

在实施例中,每个应用包名关联有多组第一预设对应关系,每组第一预设对应关系关联有一组第二预设对应关系,由于第一预设对应关系与第二预设对应关系关联,因此在用户选择第一预设对应关系后,则能够确定所关联的第二预设对应关系。这是由于对于游戏等应用,不同型号的游戏手柄上的按键位置和按键触感通常是不同的,因此,若想要模拟游戏手柄的实际触感的话,则不同的按键位置对应于不同型号的游戏手柄,也对应有不同的按键触感。In the embodiment, each application package name is associated with multiple sets of first preset correspondences, and each set of first preset correspondences is associated with a set of second preset correspondences. It is assumed that the corresponding relationship is associated, so after the user selects the first preset corresponding relationship, the associated second preset corresponding relationship can be determined. This is because for applications such as games, the button positions and button touch sensations on different types of gamepads are usually different. Therefore, if you want to simulate the actual tactile sensation of the gamepad, different button positions correspond to different types of gamepads. , but also corresponding to different button touch.

此外,在其他实施例中,由于也存在一些游戏手柄型号不同但按键位置相同的情况,因此也可以令每个应用包名仅关联一组第一预设对应关系,该第一预设对应关系关联有多组第二预设对应关系,用户可以对第二预设对应关系进行选择,例如可以预先模拟各种型号的游戏手柄的触感组合,例如Xbox手柄等。以上两种方式提高了用户的自主性,使得用户在不喜欢当前触感组合的情况下可以进行更换。In addition, in other embodiments, since there are some cases where the gamepad models are different but the button positions are the same, each application package name can also be associated with only one set of first preset correspondences, the first preset correspondences A plurality of sets of second preset correspondences are associated, and the user can select the second preset correspondences, for example, tactile combinations of various types of game controllers, such as Xbox controllers, can be simulated in advance. The above two methods improve the user's autonomy, so that the user can change the current tactile combination if he does not like it.

在本发明的另一些实施例中,上述S202可以包括:In other embodiments of the present invention, the foregoing S202 may include:

在第一预设对应关系中包括目标位置的情况下,将第一预设对应关系中与目标位置对应的虚拟按键作为目标虚拟按键;In the case that the target position is included in the first preset corresponding relationship, the virtual key corresponding to the target position in the first preset corresponding relationship is used as the target virtual key;

在第一预设对应关系中不包括目标位置的情况下,将第一预设对应关系中与目标位置距离最近的触控屏位置对应的虚拟按键作为目标虚拟按键。In the case that the target position is not included in the first preset corresponding relationship, the virtual key corresponding to the position of the touch screen that is closest to the target position in the first preset corresponding relationship is used as the target virtual key.

由于用户在对虚拟按键进行操作的过程中,可能目标位置并不是虚拟按键的位置,即用户的操作超出了虚拟按键的范围,这种情况下,由于用户在操作偏离的情况下,通常也不会偏离过远,因此,根据目标位置与各个虚拟按键的触控屏位置之间的距离,将距离最近的虚拟按键作为用户想要触发的目标虚拟按键,即能够较为准确的给出用户想要的触感效果。例如,参见图3,图3示出了本发明实施例提供的一种虚拟按键位置示意图,触控屏右侧有4个虚拟按键A-D,当用户操作位置不在虚拟按键区域内,而是在位置X时,计算X与虚拟按键A-D之间的距离,将距离最近的虚拟按键作为用户的目标虚拟按键,图3中为A。Since the user is operating the virtual key, the target position may not be the position of the virtual key, that is, the user's operation exceeds the range of the virtual key. It will deviate too far. Therefore, according to the distance between the target position and the touch screen position of each virtual key, the virtual key with the closest distance is used as the target virtual key that the user wants to trigger, that is, the user can more accurately give the desired tactile effect. For example, referring to FIG. 3, FIG. 3 shows a schematic diagram of the location of a virtual key provided by an embodiment of the present invention. There are four virtual keys A-D on the right side of the touch screen. When X, the distance between X and the virtual keys A-D is calculated, and the virtual key with the closest distance is used as the user's target virtual key, which is A in FIG. 3 .

在本发明的再一些实施例中,在第一预设对应关系中包括至少两个与目标位置距离最近的触控屏位置的情况下,In still other embodiments of the present invention, when the first preset correspondence includes at least two touch screen positions closest to the target position,

上述将第一预设对应关系中与目标位置距离最近的触控屏位置对应的虚拟按键作为目标虚拟按键,具体可以包括:The above-mentioned virtual key corresponding to the touch screen position closest to the target position in the first preset corresponding relationship is used as the target virtual key, which may specifically include:

将至少两个与目标位置距离最近的触控屏位置中,在预设时长内接收到用户输入的频率最高的触控屏位置对应的虚拟按键作为目标虚拟按键。Among at least two touch screen positions closest to the target position, the virtual key corresponding to the touch screen position with the highest frequency of receiving user input within the preset time period is used as the target virtual key.

在用户操作超出了虚拟按键的范围的情况下,如果距离用户操作的目标位置最近的虚拟按键包括多个时,本实施例将用户操作频率最高的虚拟按键作为目标虚拟按键。由于用户在高频操作的过程中容易出现误操作的情况,因此,用户当前实际想要操作的虚拟按键为距离目标位置最近的各个按键中用户输入频率最高的虚拟按键的可能性是最大的,因此本实施例的这种方式能够尽可能提高反馈目标触感时的准确性。例如,图3中,如果X与多个虚拟按键之间的距离相同,则选取用户操作频率最高的虚拟按键作为用户的目标虚拟按键。When the user's operation exceeds the range of the virtual keys, if there are multiple virtual keys closest to the target position of the user's operation, this embodiment uses the virtual key with the highest user operation frequency as the target virtual key. Since the user is prone to misoperation in the process of high-frequency operation, the virtual key that the user actually wants to operate is the virtual key that is most frequently input by the user among the keys closest to the target position. Therefore, the method of this embodiment can improve the accuracy of feedback of the tactile sensation of the target as much as possible. For example, in FIG. 3 , if the distances between X and multiple virtual keys are the same, the virtual key with the highest user operation frequency is selected as the user's target virtual key.

并且,在确定目标虚拟按键后,在用户操作的目标位置产生与目标虚拟按键相同的目标触感,以指示用户当前实际操作的虚拟按键。例如图3中,用户在位置X操作,判断用户的目标虚拟按键是A,则在位置X上产生与虚拟按键A相同的触感,以指示用户当前操作的虚拟按键是A。And, after the target virtual key is determined, a target tactile sensation identical to that of the target virtual key is generated at the target position operated by the user, so as to indicate the virtual key currently operated by the user. For example, in FIG. 3, the user operates at position X, and it is determined that the user's target virtual key is A, then the same tactile sensation as virtual key A is generated at position X to indicate that the virtual key currently operated by the user is A.

在本发明的又一些实施例中,在第一预设对应关系中不包括目标位置的情况下,上述S203之后,S204之前,该方法还可以包括:In still other embodiments of the present invention, in the case where the first preset correspondence does not include the target position, after the above S203 and before the S204, the method may further include:

根据距离与调整比例的第三预设对应关系,确定目标距离对应的目标调整比例;目标距离为目标虚拟按键对应的触控屏位置与目标位置之间的距离;According to the third preset correspondence between the distance and the adjustment ratio, the target adjustment ratio corresponding to the target distance is determined; the target distance is the distance between the touch screen position corresponding to the target virtual key and the target position;

根据目标调整比例,调整目标触感参数的数值。Adjust the scale according to the target, and adjust the value of the target haptic parameter.

由于本实施例中,为用户提供不同的触感是为了方便用户找到正确的操作位置,因此在用户操作超出了虚拟按键的区域范围时,为了方便用户找到目标虚拟按键的准确位置,本实施例根据用户操作目标位置和目标虚拟按键之间的距离,在S203所确定的目标触感参数的基础上,调整了目标触感参数的数值,使得在目标虚拟按键与目标位置之间的距离不同时,最终输出的目标触感参数的数值也不同,从而给予用户不同强度的触感反馈,如距离越远,反馈越弱,距离越近,反馈越强。例如,参见图4,图4示出了本发明实施例提供的另一种虚拟按键位置示意图,用户在位置X操作比在位置Y操作反馈更强,即越靠近虚拟按键A反馈越强。In this embodiment, the purpose of providing users with different tactile sensations is to facilitate the user to find the correct operation position. Therefore, when the user's operation exceeds the range of the virtual key, in order to facilitate the user to find the exact position of the target virtual key, this embodiment is based on The user operates the distance between the target position and the target virtual key, and on the basis of the target touch parameter determined in S203, adjusts the value of the target touch parameter, so that when the distance between the target virtual key and the target position is different, the final output The values of the target haptic parameters are also different, so as to give users different strengths of haptic feedback, such as the farther the distance, the weaker the feedback, and the closer the distance, the stronger the feedback. For example, referring to FIG. 4, FIG. 4 shows a schematic diagram of another virtual key position provided by an embodiment of the present invention. The user operates at position X with stronger feedback than at position Y, that is, the closer to the virtual key A, the stronger the feedback.

基于上述实施例提供的触控交互方法实施例,相应地,本发明实施例还提供了一种电子设备,参见图5,图5示出了本发明实施例提供的一种电子设备的结构示意图。该电子设备包括:Based on the embodiments of the touch interaction method provided by the foregoing embodiments, correspondingly, an embodiment of the present invention further provides an electronic device. Referring to FIG. 5 , FIG. 5 shows a schematic structural diagram of an electronic device provided by an embodiment of the present invention. . The electronic equipment includes:

接收模块301,用于接收用户对电子设备的触控屏中目标位置的目标输入;A receiving module 301, configured to receive a user's target input to a target position on a touch screen of the electronic device;

参数确定模块302,用于响应于目标输入,确定目标位置对应的目标触感参数;A parameter determination module 302, configured to determine a target haptic parameter corresponding to the target position in response to the target input;

第一调整模块303,用于将目标位置处的触感参数调整为目标触感参数。The first adjustment module 303 is configured to adjust the haptic parameter at the target position to the target haptic parameter.

在本发明实施例中,在接收到用户在电子设备的触控屏中目标位置处的目标输入后,会确定该目标位置对应的目标触感参数,并将目标位置处的触感参数调整为目标触感参数,从而在目标位置处模拟出与该目标位置关联的目标触感。这种方式下,只要通过为不同的触控屏位置关联不同的触感参数,即能够使用户在进行触屏操作时,能够清晰的感知到自己正在操作的区域,即使在视线较差的环境下或者用户没有查看触控屏等情况时,也能够尽可能避免误操作的情况出现,提高了用户触屏操作的准确性。In the embodiment of the present invention, after receiving the user's target input at the target position on the touch screen of the electronic device, the target tactile parameter corresponding to the target position is determined, and the tactile parameter at the target position is adjusted to the target tactile sensation parameters, thereby simulating the target haptic sensation associated with the target position at the target position. In this way, as long as different touch-sensitive parameters are associated with different touch-screen positions, users can clearly perceive the area they are operating when performing touch-screen operations, even in an environment with poor line of sight. Or when the user does not check the touch screen or the like, misoperation can be avoided as much as possible, which improves the accuracy of the user's touch screen operation.

在本发明一些实施例中,上述目标触感参数包括:电流或者超声波。In some embodiments of the present invention, the above-mentioned target haptic parameters include: current or ultrasonic waves.

在本发明一些实施例中,接收模块301具体可以用于:接收用户对目标应用的显示界面内目标位置的目标输入;In some embodiments of the present invention, the receiving module 301 may be specifically configured to: receive a user's target input to a target position in a display interface of a target application;

参数确定模块302可以包括:The parameter determination module 302 may include:

第一确定单元,用于根据目标应用中的虚拟按键与触控屏位置的第一预设对应关系,确定目标位置对应的目标虚拟按键;a first determining unit, configured to determine the target virtual key corresponding to the target position according to the first preset correspondence between the virtual key in the target application and the position of the touch screen;

第二确定单元,用于根据虚拟按键与触感参数的第二预设对应关系,确定目标虚拟按键对应的目标触感参数。The second determining unit is configured to determine the target tactile parameter corresponding to the target virtual key according to the second preset correspondence between the virtual key and the tactile parameter.

本实施例能够使得用户在使用目标应用时,各个虚拟按键会产生不同的目标触感,从而使得用户能够直观的确定当前点击的虚拟按键的位置,提高用户的使用效果,减少误操作的可能。In this embodiment, when the user uses the target application, each virtual button will produce different target touch sensations, so that the user can intuitively determine the position of the currently clicked virtual button, improve the user's use effect, and reduce the possibility of misoperation.

可选的,第二预设对应关系中的目标触感参数可以用于模拟预设型号的游戏手柄的触感。Optionally, the target touch parameter in the second preset corresponding relationship may be used to simulate the touch of a gamepad of a preset model.

在目标应用为游戏应用时,本实施例可以模拟预设型号的游戏手柄的触感,使得用户在使用电子设备进行游戏时,能够具有通过游戏手柄进行操作时的触感效果,从而使得用户在未查看虚拟按键位置的过程中,也能够准确的找到想要的虚拟按键位置,提高了用户使用电子设备玩游戏时的体验。When the target application is a game application, this embodiment can simulate the tactile sensation of a gamepad of a preset model, so that the user can have the tactile effect of operating through the gamepad when using the electronic device to play a game, so that the user can not check the In the process of virtual key position, the desired virtual key position can also be accurately found, which improves the user's experience when playing games using the electronic device.

在本发明的其他一些实施例中,该电子设备还可以包括:In some other embodiments of the present invention, the electronic device may further include:

触感选择模块,用于接收用户对目标应用的应用包名关联的至少一组虚拟按键与触控屏位置的预设对应关系中的目标预设对应关系的选择输入;响应于选择输入,将选择输入对应的目标预设对应关系作为第一预设对应关系。A tactile selection module, configured to receive a user's selection input of a preset corresponding relationship between at least one group of virtual keys associated with the application package name of the target application and the preset corresponding relationship of the touch screen position; in response to the selection input, select the The corresponding target preset corresponding relationship is input as the first preset corresponding relationship.

在实施例中,每个应用包名关联有多组第一预设对应关系,每组第一预设对应关系关联有一组第二预设对应关系,由于第一预设对应关系与第二预设对应关系关联,因此在用户选择第一预设对应关系后,则能够确定所关联的第二预设对应关系。这是由于对于游戏等应用,不同型号的游戏手柄上的按键位置和按键触感通常是不同的,因此,若想要模拟游戏手柄的实际触感的话,则不同的按键位置对应于不同型号的游戏手柄,也对应有不同的按键触感。In the embodiment, each application package name is associated with multiple sets of first preset correspondences, and each set of first preset correspondences is associated with a set of second preset correspondences. It is assumed that the corresponding relationship is associated, so after the user selects the first preset corresponding relationship, the associated second preset corresponding relationship can be determined. This is because for applications such as games, the button positions and button touch sensations on different types of gamepads are usually different. Therefore, if you want to simulate the actual tactile sensation of the gamepad, different button positions correspond to different types of gamepads. , but also corresponding to different button touch.

此外,在其他实施例中,由于也存在一些游戏手柄型号不同但按键位置相同的情况,因此也可以令每个应用包名仅关联一组第一预设对应关系,该第一预设对应关系关联有多组第二预设对应关系,用户可以对第二预设对应关系进行选择,例如可以预先模拟各种型号的游戏手柄的触感组合,例如Xbox手柄等。以上两种方式提高了用户的自主性,使得用户在不喜欢当前触感组合的情况下可以进行更换。In addition, in other embodiments, since there are some cases where the gamepad models are different but the button positions are the same, each application package name can also be associated with only one set of first preset correspondences, the first preset correspondences A plurality of sets of second preset correspondences are associated, and the user can select the second preset correspondences, for example, tactile combinations of various types of game controllers, such as Xbox controllers, can be simulated in advance. The above two methods improve the user's autonomy, so that the user can change the current tactile combination if he does not like it.

在本发明的另一些实施例中,上述第一确定单元具体可以包括:In other embodiments of the present invention, the above-mentioned first determining unit may specifically include:

第一按键确定单元,用于在第一预设对应关系中包括目标位置的情况下,将第一预设对应关系中与目标位置对应的虚拟按键作为目标虚拟按键;a first key determining unit, configured to use the virtual key corresponding to the target position in the first preset corresponding relationship as the target virtual key when the first preset corresponding relationship includes the target position;

第二按键确定单元,用于在第一预设对应关系中不包括目标位置的情况下,将第一预设对应关系中与目标位置距离最近的触控屏位置对应的虚拟按键作为目标虚拟按键。The second key determining unit is configured to use the virtual key corresponding to the touch screen position closest to the target position in the first preset corresponding relationship as the target virtual key when the target position is not included in the first preset corresponding relationship .

由于用户在对虚拟按键进行操作的过程中,可能目标位置并不是虚拟按键的位置,即用户的操作超出了虚拟按键的范围,这种情况下,由于用户在操作偏离的情况下,通常也不会偏离过远,因此,根据目标位置与各个虚拟按键的触控屏位置之间的距离,将距离最近的虚拟按键作为用户想要触发的目标虚拟按键,即能够较为准确的给出用户想要的触感效果。Since the user is operating the virtual key, the target position may not be the position of the virtual key, that is, the user's operation exceeds the range of the virtual key. It will deviate too far. Therefore, according to the distance between the target position and the touch screen position of each virtual key, the virtual key with the closest distance is used as the target virtual key that the user wants to trigger, that is, the user can more accurately give the desired tactile effect.

在本发明的再一些实施例中,上述第一按键确定单元可以用于:In still other embodiments of the present invention, the above-mentioned first key determining unit may be used for:

在第一预设对应关系中包括至少两个与目标位置距离最近的触控屏位置的情况下,将至少两个与目标位置距离最近的触控屏位置中,在预设时长内接收到用户输入的频率最高的触控屏位置对应的虚拟按键作为目标虚拟按键。If the first preset correspondence includes at least two touch screen positions closest to the target The virtual key corresponding to the position of the touch screen with the highest input frequency is used as the target virtual key.

在用户操作超出了虚拟按键的范围的情况下,如果距离用户操作的目标位置最近的虚拟按键包括多个时,本实施例将用户操作频率最高的虚拟按键作为目标虚拟按键。由于用户在高频操作的过程中容易出现误操作的情况,因此,用户当前实际想要操作的虚拟按键为距离目标位置最近的各个按键中用户输入频率最高的虚拟按键的可能性是最大的,因此本实施例的这种方式能够尽可能提高反馈目标触感时的准确性。When the user's operation exceeds the range of the virtual keys, if there are multiple virtual keys closest to the target position of the user's operation, this embodiment uses the virtual key with the highest user operation frequency as the target virtual key. Since the user is prone to misoperation in the process of high-frequency operation, the virtual key that the user actually wants to operate is the virtual key that is most frequently input by the user among the keys closest to the target position. Therefore, the method of this embodiment can improve the accuracy of feedback of the tactile sensation of the target as much as possible.

在本发明的又一些实施例中,该电子设备还可以包括:In still other embodiments of the present invention, the electronic device may further include:

第二调整模块,用于在第一预设对应关系中不包括目标位置的情况下,确定所述目标虚拟按键对应的目标触感参数之后,根据距离与调整比例的第三预设对应关系,确定目标距离对应的目标调整比例;目标距离为目标虚拟按键对应的触控屏位置与目标位置之间的距离;根据目标调整比例,调整目标触感参数的数值。The second adjustment module is configured to determine, according to the third preset correspondence between the distance and the adjustment ratio, after determining the target tactile parameter corresponding to the target virtual key when the target position is not included in the first preset correspondence The target adjustment ratio corresponding to the target distance; the target distance is the distance between the touch screen position corresponding to the target virtual key and the target position; according to the target adjustment ratio, the value of the target touch parameter is adjusted.

由于本实施例中,为用户提供不同的触感是为了方便用户找到正确的操作位置,因此在用户操作超出了虚拟按键的区域范围时,为了方便用户找到目标虚拟按键的准确位置,本实施例根据用户操作目标位置和目标虚拟按键之间的距离,在所确定的目标触感参数的基础上,调整了目标触感参数的数值,使得在目标虚拟按键与目标位置之间的距离不同时,最终输出的目标触感参数的数值也不同,从而给予用户不同强度的触感反馈。In this embodiment, the purpose of providing users with different tactile sensations is to facilitate the user to find the correct operation position. Therefore, when the user's operation exceeds the range of the virtual key, in order to facilitate the user to find the exact position of the target virtual key, this embodiment is based on The user operates the distance between the target position and the target virtual key, and on the basis of the determined target touch parameter, adjusts the value of the target touch parameter, so that when the distance between the target virtual key and the target position is different, the final output The values of the target haptic parameters are also different, thereby giving the user haptic feedback with different strengths.

本发明实施例提供的电子设备能够实现图1至图2的方法实施例中实现的各个方法步骤,为避免重复,这里不再赘述。The electronic device provided in the embodiment of the present invention can implement each method step implemented in the method embodiment of FIG. 1 to FIG. 2 , and to avoid repetition, details are not described here.

图6示出了本发明实施例提供的一种电子设备的硬件结构示意图。FIG. 6 shows a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present invention.

该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and Power 411 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,处理器410,用于接收用户对电子设备的触控屏中目标位置的目标输入;响应于目标输入,确定目标位置对应的目标触感参数;将目标位置处的触感参数调整为目标触感参数。The processor 410 is configured to receive the user's target input to the target position on the touch screen of the electronic device; in response to the target input, determine the target tactile parameter corresponding to the target position; and adjust the tactile parameter at the target position to the target tactile parameter .

在本发明实施例中,在接收到用户在触控屏中目标位置处的目标输入后,会确定该目标位置对应的目标触感参数,并将目标位置处的触感参数调整为目标触感参数,从而在目标位置处模拟出与该目标位置关联的目标触感。这种方式下,只要通过为不同的触控屏位置关联不同的触感参数,即能够使用户在进行触屏操作时,能够清晰的感知到自己正在操作的区域,即使在视线较差的环境下或者用户没有查看触控屏等情况时,也能够尽可能避免误操作的情况出现,提高了用户触屏操作的准确性。In the embodiment of the present invention, after receiving the target input from the user at the target position on the touch screen, the target tactile parameter corresponding to the target position is determined, and the tactile parameter at the target position is adjusted to the target tactile parameter, thereby A target haptic sensation associated with the target location is simulated at the target location. In this way, as long as different touch-sensitive parameters are associated with different touch-screen positions, users can clearly perceive the area they are operating when performing touch-screen operations, even in an environment with poor line of sight. Or when the user does not check the touch screen or the like, misoperation can be avoided as much as possible, which improves the accuracy of the user's touch screen operation.

应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 410; The uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through the network module 402, such as helping the user to send and receive emails, browse web pages, access streaming media, and the like.

音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与电子设备400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into audio signals and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic device 400 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.

输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used to receive audio or video signals. The input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042. The graphics processor 4041 captures images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode data is processed. The processed image frames may be displayed on the display unit 406 . The image frames processed by the graphics processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402 . The microphone 4042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 401 for output in the case of a telephone call mode.

电子设备400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在电子设备400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and the display panel 4061 when the electronic device 400 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

用户输入单元407可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072 . The touch panel 4071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 4071). operate). The touch panel 4071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 410, the command sent by the processor 410 is received and executed. In addition, the touch panel 4071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 4071 , the user input unit 407 may also include other input devices 4072 . Specifically, other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图6中,触控面板4071与显示面板4061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 4071 can be covered on the display panel 4061. When the touch panel 4071 detects a touch operation on or near it, it transmits it to the processor 410 to determine the type of the touch event, and then the processor 410 determines the type of the touch event according to the touch The type of event provides corresponding visual output on display panel 4061. Although in FIG. 6 , the touch panel 4071 and the display panel 4061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元408为外部装置与电子设备400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备400内的一个或多个元件或者可以用于在电子设备400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device to the electronic device 400 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 408 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 400 or may be used between the electronic device 400 and external Transfer data between devices.

存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器410是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in the memory 409, and calling the data stored in the memory 409. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 410.

电子设备400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to various components. Preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备400包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 400 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种电子设备,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述触控交互方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, including a processor 410, a memory 409, and a computer program stored in the memory 409 and running on the processor 410, when the computer program is executed by the processor 410 Various processes in the above embodiments of the touch interaction method are implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述触控交互方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiments of the touch interaction method can be achieved, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.

Claims (8)

1. A touch interaction method is applied to electronic equipment and is characterized by comprising the following steps:
receiving target input of a user to a target position in a touch screen of the electronic equipment;
in response to the target input, determining a target touch sensation parameter corresponding to the target position;
adjusting the touch sensing parameter at the target position to the target touch sensing parameter;
the receiving of the target input of the user to the target position in the touch screen of the electronic device includes:
receiving the target input of a user to the target position in a display interface of a target application;
the determining of the target touch parameter corresponding to the target position includes:
determining a first preset corresponding relation corresponding to the target application according to the application package name of the target application, and determining a target virtual key corresponding to the target position according to the first preset corresponding relation, wherein the first preset corresponding relation is the first preset corresponding relation between the virtual key in the target application and the position of the touch screen;
and determining a target touch parameter corresponding to the target virtual key according to a second preset corresponding relation between the virtual key and the touch parameter.
2. The method of claim 1, wherein the determining the target virtual key corresponding to the target location comprises:
taking the virtual key corresponding to the target position in the first preset corresponding relation as the target virtual key under the condition that the first preset corresponding relation comprises the target position;
and under the condition that the target position is not included in the first preset corresponding relation, taking the virtual key corresponding to the touch screen position closest to the target position in the first preset corresponding relation as the target virtual key.
3. The method according to claim 2, wherein when the first predetermined correspondence includes at least two touch screen positions closest to the target position, the taking the virtual key corresponding to the touch screen position closest to the target position in the first predetermined correspondence as the target virtual key includes:
and taking the virtual key corresponding to the touch screen position with the highest frequency, which is received by the user within a preset time length and input by the user, in at least two touch screen positions closest to the target position as the target virtual key.
4. The method according to claim 2, wherein in a case that the target position is not included in the first preset correspondence, after determining the target touch sensing parameter corresponding to the target virtual key, before adjusting the touch sensing parameter at the target position to the target touch sensing parameter, further comprising:
determining a target adjustment proportion corresponding to the target distance according to a third preset corresponding relation between the distance and the adjustment proportion; the target distance is the distance between the position of the touch screen corresponding to the target virtual key and the target position;
and adjusting the numerical value of the target touch parameter according to the target adjustment proportion.
5. An electronic device, comprising:
the receiving module is used for receiving target input of a user to a target position in a touch screen of the electronic equipment;
the parameter determining module is used for responding to the target input and determining a target touch parameter corresponding to the target position;
a first adjusting module, configured to adjust the touch parameter at the target position to the target touch parameter;
the receiving module is specifically configured to: receiving the target input of a user to the target position in a display interface of a target application;
the parameter determination module comprises:
the first determining unit is used for determining a first preset corresponding relation corresponding to the target application according to the application package name of the target application, and determining a target virtual key corresponding to the target position according to the first preset corresponding relation, wherein the first preset corresponding relation is a first preset corresponding relation between the virtual key in the target application and the position of the touch screen;
and the second determining unit is used for determining the target touch parameter corresponding to the target virtual key according to the second preset corresponding relation between the virtual key and the touch parameter.
6. The electronic device according to claim 5, wherein the first determining unit specifically includes:
a first key determining unit, configured to, when the first preset correspondence includes the target position, use a virtual key corresponding to the target position in the first preset correspondence as the target virtual key;
and the second key determining unit is used for taking the virtual key corresponding to the position of the touch screen closest to the target position in the first preset corresponding relation as the target virtual key under the condition that the target position is not included in the first preset corresponding relation.
7. The electronic device according to claim 6, wherein the first key determination unit is configured to:
and under the condition that the first preset corresponding relation comprises at least two touch screen positions closest to the target position, taking a virtual key corresponding to the touch screen position with the highest frequency, which is received by the user within a preset time length and is input by the user, of the at least two touch screen positions closest to the target position as the target virtual key.
8. The electronic device of claim 6, further comprising:
the second adjusting module is used for determining a target touch parameter corresponding to the target virtual key under the condition that the first preset corresponding relation does not comprise the target position, and then determining a target adjusting proportion corresponding to the target distance according to a third preset corresponding relation between the distance and the adjusting proportion; the target distance is the distance between the position of the touch screen corresponding to the target virtual key and the target position; and adjusting the numerical value of the target touch parameter according to the target adjustment proportion.
CN202010214336.3A 2020-03-24 2020-03-24 Touch interaction method and electronic equipment Active CN111443859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010214336.3A CN111443859B (en) 2020-03-24 2020-03-24 Touch interaction method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010214336.3A CN111443859B (en) 2020-03-24 2020-03-24 Touch interaction method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111443859A CN111443859A (en) 2020-07-24
CN111443859B true CN111443859B (en) 2022-09-20

Family

ID=71629460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010214336.3A Active CN111443859B (en) 2020-03-24 2020-03-24 Touch interaction method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111443859B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124068B (en) * 2020-08-31 2025-06-03 无锡小天鹅电器有限公司 Control method of household appliance, household appliance and computer-readable storage medium
CN114953311B (en) * 2022-05-31 2025-02-18 宁波弘讯科技股份有限公司 A rubber machine control method, system, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582174A (en) * 2018-11-12 2019-04-05 维沃移动通信有限公司 A kind of touch-control input response method and terminal device
CN109782944A (en) * 2018-12-11 2019-05-21 华为技术有限公司 A kind of response method and electronic equipment of touch screen
CN110515487A (en) * 2019-08-01 2019-11-29 联想(北京)有限公司 Information processing method and electronic equipment based on touch control keyboard

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751172A (en) * 2008-12-08 2010-06-23 上海天马微电子有限公司 Touch position detection method and touch screen
US20130100042A1 (en) * 2011-10-21 2013-04-25 Robert H. Kincaid Touch screen implemented control panel
US9594450B2 (en) * 2011-11-18 2017-03-14 Sentons Inc. Controlling audio volume using touch input force
CN103869935B (en) * 2012-12-13 2018-04-24 富泰华工业(深圳)有限公司 Tactile feedback system and its method that tactile feedback is provided
US10346020B2 (en) * 2016-10-20 2019-07-09 Adobe Inc. Relatively changing a parametric value using a pressure sensitive user interface element
CN108319361A (en) * 2017-01-17 2018-07-24 中兴通讯股份有限公司 A kind of feedback method and device
CN107015639B (en) * 2017-01-24 2020-02-04 瑞声科技(新加坡)有限公司 Dynamic range control method for tactile feedback, tactile feedback system and electronic terminal
CN109213302B (en) * 2017-06-29 2022-03-08 云谷(固安)科技有限公司 Tactile feedback device and flexible display
CN110362200A (en) * 2019-06-24 2019-10-22 瑞声科技(新加坡)有限公司 The generation method and device of touch feedback

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582174A (en) * 2018-11-12 2019-04-05 维沃移动通信有限公司 A kind of touch-control input response method and terminal device
CN109782944A (en) * 2018-12-11 2019-05-21 华为技术有限公司 A kind of response method and electronic equipment of touch screen
CN110515487A (en) * 2019-08-01 2019-11-29 联想(北京)有限公司 Information processing method and electronic equipment based on touch control keyboard

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
将多点触控和触感响应结合起来;STEVE KINGSLEY-JONES等;《今日电子》;20101215(第12期);43-44 *

Also Published As

Publication number Publication date
CN111443859A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
WO2021068885A1 (en) Control method and electronic device
CN108008858B (en) A terminal control method and mobile terminal
CN110531915B (en) Screen operation method and terminal device
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN109710349B (en) Screen capturing method and mobile terminal
CN110471559B (en) False touch prevention method and mobile terminal
CN108196753B (en) Interface switching method and mobile terminal
CN110673770A (en) Message display method and terminal equipment
CN108958593A (en) A kind of method and mobile terminal of determining communication object
CN109947312A (en) A control method and terminal device
CN110719531A (en) Video playback progress adjustment method and electronic device
WO2021208769A1 (en) Control method and electronic device
CN110825295A (en) Application program control method and electronic equipment
CN110769303A (en) Playing control method and device and mobile terminal
CN111443859B (en) Touch interaction method and electronic equipment
WO2021190419A1 (en) Touch screen control method, electronic device, and storage medium
CN108897477B (en) Operation control method and terminal equipment
CN108491143B (en) Object movement control method and mobile terminal
CN111444494B (en) A verification method, electronic device and computer-readable storage medium
CN111190528B (en) Brush display method, electronic equipment and storage medium
CN108471549B (en) A remote control method and terminal
CN109358792B (en) Display object selection method and terminal
CN108563376B (en) A kind of application program startup method and mobile terminal
CN111443968A (en) Screenshot method and electronic equipment
CN111651068A (en) Method, device, device and storage medium for switching text language types

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant