CN105677223B - A press touch method and device - Google Patents
A press touch method and device Download PDFInfo
- Publication number
- CN105677223B CN105677223B CN201610011198.2A CN201610011198A CN105677223B CN 105677223 B CN105677223 B CN 105677223B CN 201610011198 A CN201610011198 A CN 201610011198A CN 105677223 B CN105677223 B CN 105677223B
- Authority
- CN
- China
- Prior art keywords
- touch
- pressing
- area
- parameters
- control command
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000003825 pressing Methods 0.000 claims abstract description 314
- 230000003993 interaction Effects 0.000 abstract description 23
- 230000006835 compression Effects 0.000 description 8
- 238000007906 compression Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 230000001939 inductive effect Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
- G06F3/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04847—Interaction 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)
- User Interface Of Digital Computer (AREA)
Abstract
本发明实施例公开了一种按压触控方法和装置,该方法可包括:接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;使用所述控制命令对所述当前受控对象进行控制。本发明实施例可以增加电子设备的人机交互的方式。
Embodiments of the present invention disclose a method and device for pressing and touching. The method may include: receiving a pressing operation input in a first area of a touch screen, and acquiring a pressing parameter of the pressing operation; generating a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation; The current controlled object is controlled using the control command. The embodiment of the present invention can increase the way of human-computer interaction of the electronic device.
Description
技术领域technical field
本发明涉及电子技术领域,尤其涉及一种按压触控方法的装置。The present invention relates to the field of electronic technology, and in particular, to a device for a touch-pressing method.
背景技术Background technique
目前很多电子设备都采用触控屏控制,且现在很多触控屏都支持压力触控,例如:现在很多手机都支持压力触控。但目前电子设备的触控屏针对于同一按压操作在任何位置感应的按压力度都是相同的,而实际应用中由于用户操作的惯性会导致用户每次输入的按压操作的按压力度都是固定在几种之中,这样电子设备的触控屏感应的按压力度就有限,例如:只能感应到轻点、轻按及重按这三种按压操作。而电子设备的触控屏感应的按压力度有限,那么就会导致人机交互的方式受到限制。At present, many electronic devices are controlled by touch screens, and many touch screens now support pressure touch. For example, many mobile phones now support pressure touch. However, at present, the touch screen of electronic devices senses the same pressing force at any position for the same pressing operation. In practical applications, due to the inertia of the user's operation, the pressing force of each pressing operation input by the user is fixed at Among several types, the touch screen of the electronic device can sense a limited pressing force. For example, only three pressing operations of tap, tap, and heavy press can be sensed. On the other hand, the touch screen of an electronic device has a limited pressing force, which limits the way of human-computer interaction.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种按压触控方法和装置,可以增加电子设备的人机交互的方式。Embodiments of the present invention provide a method and apparatus for pressing and touching, which can increase the way of human-computer interaction of an electronic device.
第一方面,本发明实施例提供一种按压触控方法,包括:In a first aspect, an embodiment of the present invention provides a press touch method, including:
接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;receiving a pressing operation input in the first area of the touch screen, and acquiring pressing parameters of the pressing operation;
接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;receiving a touch operation input in the second area of the touch screen, and acquiring touch parameters of the touch operation;
依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;generating a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touching operation;
使用所述控制命令对所述当前受控对象进行控制。The current controlled object is controlled using the control command.
可选的,所述按压操作的按压参数包括如下至少一项:Optionally, the pressing parameters of the pressing operation include at least one of the following:
按压时间、按压力度、按压位置和按压面积;Pressing time, pressing force, pressing position and pressing area;
所述触摸操作的触摸参数包括如下至少一项:The touch parameters of the touch operation include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
可选的,所述第一区域为所述触控屏上存在压力感应的区域,所述第二区域为所述触控屏上不存在压力感应的触摸区域;或者Optionally, the first area is a pressure-sensitive area on the touch screen, and the second area is a pressure-sensitive touch area on the touch screen; or
所述第一区域和所述第二区域都是存在压力感应的区域,其中,所述第一区域接收到输入操作时确定其为按压操作并获取按压参数,所述第二区域接收到输入操作时确定其为触摸操作并获取触摸参数。Both the first area and the second area are pressure-sensitive areas, wherein when the first area receives an input operation, it is determined to be a pressing operation and obtains a pressing parameter, and the second area receives an input operation When it is determined that it is a touch operation, and the touch parameters are obtained.
可选的,所述接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数,包括:Optionally, the receiving a pressing operation input in the first area of the touch screen, and acquiring the pressing parameters of the pressing operation, includes:
当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述按压操作所按压的区域作为第一区域,并获取所述按压操作的按压参数;When an input pressing operation and a touch operation with a sliding track are detected on the touch screen, the area pressed by the pressing operation is used as the first area, and the pressing parameters of the pressing operation are acquired;
所述接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数,包括:The receiving a touch operation input in the second area of the touch screen, and acquiring the touch parameters of the touch operation, includes:
当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述触摸操作所触摸的区域作为第二区域,并获取所述触摸操作的触摸参数。When an input pressing operation and a touch operation with a sliding track are detected on the touch screen, the area touched by the touch operation is taken as the second area, and the touch parameters of the touch operation are acquired.
可选的,所述使用所述控制命令对所述当前受控对象进行控制,包括:Optionally, using the control command to control the current controlled object includes:
使用所述控制命令点亮所述触控屏;或者lighting the touch screen using the control command; or
使用所述控制命令解锁所述触控屏所属的电子设备;或者using the control command to unlock the electronic device to which the touch screen belongs; or
使用所述控制命令对所述触控屏的显示对象进行控制。The display objects of the touch screen are controlled by using the control commands.
可选的,所述方法还包括:Optionally, the method further includes:
在所述第一区域显示第一类应用程序的信息,其中,所述第一类应用程序包括支持按压触控的应用程序;Display information of a first type of application in the first area, wherein the first type of application includes an application that supports touch-press;
在所述第二区域显示第二类应用程序的信息,其中,所述第二类应用程序包括不支持按压触控的应用程序。Information of a second type of application program is displayed in the second area, wherein the second type of application program includes an application program that does not support touch-pressing.
可选的,所述依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令,包括:Optionally, generating a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation includes:
生成用于对当前受控对象进行控制且包含所述按压操作的按压参数和所述触摸操作的触摸参数控制命令;或者generating a touch parameter control command for controlling the current controlled object and including the pressing parameter of the pressing operation and the touch operation; or
按照预先获取的控制命令生成规则生成与所述按压操作的按压参数和所述触摸操作的触摸参数对应且用于对当前受控对象进行控制的控制命令。A control command corresponding to the pressing parameter of the pressing operation and the touch parameter of the touch operation and used for controlling the current controlled object is generated according to the control command generation rule acquired in advance.
第二方面,本发明实施例提供一种按压触控装置,包括:接收单元、生成单元和控制单元,其中:In a second aspect, an embodiment of the present invention provides a touch-pressing device, including: a receiving unit, a generating unit, and a control unit, wherein:
所述接收单元,用于接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;the receiving unit, configured to receive a pressing operation input in the first area of the touch screen, and obtain pressing parameters of the pressing operation;
所述接收单元还用于接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;The receiving unit is further configured to receive a touch operation input in the second area of the touch screen, and acquire touch parameters of the touch operation;
所述生成单元,用于依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;the generating unit, configured to generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation;
所述控制单元,用于使用所述控制命令对所述当前受控对象进行控制。The control unit is configured to use the control command to control the current controlled object.
可选的,所述按压操作的按压参数包括如下至少一项:Optionally, the pressing parameters of the pressing operation include at least one of the following:
按压时间、按压力度、按压位置和按压面积;Pressing time, pressing force, pressing position and pressing area;
所述触摸操作的触摸参数包括如下至少一项:The touch parameters of the touch operation include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
可选的,所述第一区域为所述触控屏上存在压力感应的区域,所述第二区域为所述触控屏上不存在压力感应的触摸区域;或者Optionally, the first area is a pressure-sensitive area on the touch screen, and the second area is a pressure-sensitive touch area on the touch screen; or
所述第一区域和所述第二区域都是存在压力感应的区域,其中,所述第一区域接收到输入操作时确定其为按压操作并获取按压参数,所述第二区域接收到输入操作时确定其为触摸操作并获取触摸参数。Both the first area and the second area are pressure-sensitive areas, wherein when the first area receives an input operation, it is determined to be a pressing operation and obtains a pressing parameter, and the second area receives an input operation When it is determined that it is a touch operation, and the touch parameters are obtained.
可选的,所述接收单元用于当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述按压操作所按压的区域作为第一区域,并获取所述按压操作的按压参数;Optionally, the receiving unit is configured to use the area pressed by the pressing operation as the first area when an input pressing operation and a touch operation with a sliding track are detected on the touch screen, and obtain the information. the pressing parameters of the pressing operation;
所述接收单元还用于当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述触摸操作所触摸的区域作为第二区域,并获取所述触摸操作的触摸参数。The receiving unit is further configured to use the area touched by the touch operation as a second area when detecting an input pressing operation and a touch operation with a sliding track on the touch screen, and acquire the touch operation touch parameters.
可选的,所述控制单元用于使用所述控制命令点亮所述触控屏;或者Optionally, the control unit is configured to use the control command to light up the touch screen; or
所述控制单元用于使用所述控制命令解锁所述触控屏所属的电子设备;或者The control unit is configured to use the control command to unlock the electronic device to which the touch screen belongs; or
所述控制单元用于使用所述控制命令对所述触控屏的显示对象进行控制。The control unit is configured to use the control command to control the display object of the touch screen.
可选的,所述装置还包括:Optionally, the device further includes:
显示单元,用于在所述第一区域显示第一类应用程序的信息,其中,所述第一类应用程序包括支持按压触控的应用程序;a display unit, configured to display information of a first type of application program in the first area, wherein the first type of application program includes an application program that supports press and touch;
所述显示单元还用于在所述第二区域显示第二类应用程序的信息,其中,所述第二类应用程序包括不支持按压触控的应用程序。The display unit is further configured to display information of a second type of application program in the second area, where the second type of application program includes an application program that does not support press-to-touch.
可选的,所述生成单元用于生成用于对当前受控对象进行控制且包含所述按压操作的按压参数和所述触摸操作的触摸参数控制命令;或者Optionally, the generating unit is configured to generate a control command for controlling the current controlled object and including a pressing parameter of the pressing operation and a touch parameter control command of the touch operation; or
所述生成单元用于按照预先获取的控制命令生成规则生成与所述按压操作的按压参数和所述触摸操作的触摸参数对应且用于对当前受控对象进行控制的控制命令。The generating unit is configured to generate a control command corresponding to the pressing parameter of the pressing operation and the touch parameter of the touch operation and used for controlling the current controlled object according to a pre-acquired control command generating rule.
上述技术方案中,接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;使用所述控制命令对所述当前受控对象进行控制。由于是依据按压操作的按压参数和触摸操作的触摸参数生成控制命令,即可以使用这两个参数进行人机交互,而这两个参数是存在多种组合方式,这样相比现有技术仅只使用按压参数进行人机交互,本发明实施例可以增加电子设备的人机交互的方式。In the above technical solution, a pressing operation input in the first area of the touch screen is received, and pressing parameters of the pressing operation are acquired; the touch operation input in the second area of the touch screen is received, and the touch operation is acquired touch parameter of the operation; generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation; use the control command to control the current controlled object. Since the control command is generated based on the pressing parameters of the pressing operation and the touch parameters of the touch operation, the two parameters can be used for human-computer interaction, and there are various combinations of these two parameters. The human-computer interaction is performed by pressing the parameters, and the embodiment of the present invention can increase the human-computer interaction mode of the electronic device.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1是本发明实施例提供的一种按压触控方法的流程示意图;FIG. 1 is a schematic flowchart of a press touch method according to an embodiment of the present invention;
图2是本发明实施例提供的一种触控区域的示意图;FIG. 2 is a schematic diagram of a touch area provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种按压触控方法的流程示意图;FIG. 3 is a schematic flowchart of another method for pressing and touching according to an embodiment of the present invention;
图4是本发明实施例提供的一种按压触控装置的结构示意图;FIG. 4 is a schematic structural diagram of a press touch device according to an embodiment of the present invention;
图5是本发明实施例提供的另一种按压触控装置的结构示意图;FIG. 5 is a schematic structural diagram of another press touch device provided by an embodiment of the present invention;
图6是本发明实施例提供的另一种按压触控装置的结构示意图。FIG. 6 is a schematic structural diagram of another press touch device provided by 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 only a 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.
请参阅图1,图1是本发明实施例提供的一种按压触控方法的流程示意图,如图1所示,包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a touch-pressing method provided by an embodiment of the present invention. As shown in FIG. 1, the following steps are included:
101、接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数。101. Receive a pressing operation input in a first area of a touch screen, and acquire a pressing parameter of the pressing operation.
上述按压操作可以理解为用户按压触控屏的第一区域而输入的操作。The above pressing operation can be understood as an operation input by the user by pressing the first area of the touch screen.
其中,上述按压参数可以包括如下至少一项:Wherein, the above-mentioned pressing parameters may include at least one of the following:
按压时间、按压力度、按压位置和按压面积。Compression time, compression strength, compression location and compression area.
102、接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数。102. Receive a touch operation input in the second area of the touch screen, and acquire a touch parameter of the touch operation.
上述触摸操作可以理解为用户触摸触控屏的第二区域而输入的操作。其中,上述触摸参数可以包括如下至少一项:The above touch operation can be understood as an operation input by the user by touching the second area of the touch screen. Wherein, the above-mentioned touch parameters may include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
本实施例中,上述第一区域可以是上述触控屏中存在压力感应的区域,而上述第二区域可以是存在触摸感应的触摸区域。例如:如图2所示,触控屏以中间位置上下划分为第一区域和第二区域,当然,图2仅是举例,本实施例中,对第一区域和第二区域的位置不作限定,例如:第一区域和第二区域的区域大小可以是不相等的,或者第一区域和第二区域可以是以中间位置左右划分的两个区域。In this embodiment, the first area may be a pressure-sensitive area in the touch screen, and the second area may be a touch-sensitive touch area. For example, as shown in FIG. 2 , the touch screen is divided into a first area and a second area up and down at the middle position. Of course, FIG. 2 is only an example. In this embodiment, the positions of the first area and the second area are not limited. For example, the area sizes of the first area and the second area may be unequal, or the first area and the second area may be two areas that are divided into left and right in the middle.
另外,需要说明的是,本实施例中,对步骤101和步骤102的执行时间不作限定,例如:步骤101和步骤102可以是同时执行的,或者步骤101在步骤102之前执行,或者步骤101在步骤102之后执行都是可以的。In addition, it should be noted that in this embodiment, the execution time of step 101 and step 102 is not limited. For example, step 101 and step 102 may be executed simultaneously, or step 101 may be executed before step 102, or step 101 may be executed before step 102. It is possible to execute after step 102.
103、依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令。103. Generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation.
本实施例中,步骤103可以是按照特定控制命令生成规则或者按照参数与控制控制命令的对应关系生成上述控制命令。In this embodiment, step 103 may be to generate the above control command according to a specific control command generation rule or according to the corresponding relationship between parameters and control control commands.
104、使用所述控制命令对所述当前受控对象进行控制。104. Use the control command to control the current controlled object.
通过上述步骤可以实现根据按压参数和触摸参数对当前受控对象进行控制。Through the above steps, the current controlled object can be controlled according to the pressing parameters and the touch parameters.
本实施例中,上述当前受控对象可以是电子设备上硬件对象,例如:触控屏、扬声器等;或者上述当前受控对象可以是电子设备上虚拟对象,例如:触控屏上显示的对象。In this embodiment, the current controlled object may be a hardware object on an electronic device, such as a touch screen, a speaker, etc.; or the current controlled object may be a virtual object on the electronic device, such as an object displayed on a touch screen .
本实施例中,上述方法可以应用于任何能感应触控屏的压力的电子设备,例如:手机、平板电脑、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等能感应触控屏的压力的电子设备。In this embodiment, the above method can be applied to any electronic device that can sense the pressure of the touch screen, such as: mobile phone, tablet computer, electronic reader, remote control, personal computer (PC), notebook computer, vehicle-mounted device , Internet TV, wearable devices and other electronic devices that can sense the pressure of the touch screen.
本实施例中,接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;使用所述控制命令对所述当前受控对象进行控制。由于是依据按压操作的按压参数和触摸操作的触摸参数生成控制命令,即可以使用这两个参数进行人机交互,而这两个参数是存在多种组合方式,这样相比现有技术仅只使用按压参数进行人机交互,本发明实施例可以增加电子设备的人机交互的方式。In this embodiment, a pressing operation input in the first area of the touch screen is received, and pressing parameters of the pressing operation are acquired; the touch operation input in the second area of the touch screen is received, and the touch operation is acquired touch parameter of the operation; generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation; use the control command to control the current controlled object. Since the control command is generated based on the pressing parameters of the pressing operation and the touch parameters of the touch operation, the two parameters can be used for human-computer interaction, and there are various combinations of these two parameters. The human-computer interaction is performed by pressing the parameters, and the embodiment of the present invention can increase the human-computer interaction mode of the electronic device.
请参阅图3,图3是本发明实施例提供的另一种按压触控方法的流程示意图,如图3所示,包括以下步骤:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of another method for pressing and touching according to an embodiment of the present invention. As shown in FIG. 3, the following steps are included:
301、接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数。301. Receive a pressing operation input in a first area of a touch screen, and acquire a pressing parameter of the pressing operation.
302、接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数。302. Receive a touch operation input in the second area of the touch screen, and acquire a touch parameter of the touch operation.
本实施例中,上述按压操作的按压参数可以包括如下至少一项:In this embodiment, the pressing parameters of the pressing operation may include at least one of the following:
按压时间、按压力度、按压位置和按压面积;Pressing time, pressing force, pressing position and pressing area;
上述触摸操作的触摸参数可以包括如下至少一项:The touch parameters of the above touch operation may include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
该实施方式中可以实现提供多种人机交互方式,例如:按压时间可以与触摸时间、触摸位置、触摸时长和触摸手势中的至少一项组合,同样的,按压力度、按压位置和按压面积也可以与触摸时间、触摸位置、触摸时长和触摸手势中的至少一项组合,以及按压时间、按压力度、按压位置和按压面积中任意两项或者三项或者四项也可以与触摸时间、触摸位置、触摸时长和触摸手势的至少一项组合。In this embodiment, a variety of human-computer interaction modes can be provided. For example, the pressing time can be combined with at least one of touch time, touch position, touch duration and touch gesture. Similarly, the pressing force, pressing position and pressing area can also be combined. It can be combined with at least one of touch time, touch position, touch duration and touch gesture, and any two or three or four items of pressing time, pressing force, pressing position and pressing area can also be combined with touch time, touch position , at least one combination of touch duration and touch gesture.
本实施例中,上述第一区域可以为所述触控屏上存在压力感应的区域,所述第二区域为所述触控屏上不存在压力感应的触摸区域。In this embodiment, the first area may be a pressure-sensitive area on the touch screen, and the second area is a touch area without pressure sensitivity on the touch screen.
例如:触控屏中的第一区域中存在压力触控单元,例如:感应传感器,从而可以检测到上述按压操作,以及按压操作的按压参数。而触控屏的第二区域存在电容触控单元,从而可以检测到上述触摸操作,以及触摸操作的触摸参数。而往往存在压力触控单元的触控屏是对存在电容触控单元的触控屏的改进,即存在压力触控单元的触控屏的成本会比较高,这样该实施方式中只有部分区域是存在压力触控单元的触控屏,从而可以节减电子设备的成本。For example, a pressure touch unit, such as an inductive sensor, exists in the first area of the touch screen, so that the above-mentioned pressing operation and the pressing parameters of the pressing operation can be detected. On the other hand, there is a capacitive touch unit in the second area of the touch screen, so that the above-mentioned touch operation and the touch parameters of the touch operation can be detected. However, a touch screen with a pressure touch unit is often an improvement on a touch screen with a capacitive touch unit, that is, the cost of a touch screen with a pressure touch unit is relatively high, so in this embodiment, only part of the area is There is a touch screen with a pressure touch unit, so that the cost of electronic equipment can be reduced.
本实施例中,上述第一区域和上述第二区域还可以都是存在压力感应的区域,其中,所述第一区域接收到输入操作时确定其为按压操作并获取按压参数,所述第二区域接收到输入操作时确定其为触摸操作并获取触摸参数。In this embodiment, the above-mentioned first area and the above-mentioned second area may also both be pressure-sensitive areas, wherein when the first area receives an input operation, it is determined to be a pressing operation and a pressing parameter is obtained, and the second area When the area receives an input operation, it is determined as a touch operation and the touch parameters are obtained.
该实施方式中可以实现在第一区域可以用于识别输入操作的按压参数,而第二区域可以用于识别输入操作的触摸参数。而第一区域和第二区域的硬件电路完全可以相同,这样电子设备的生产工艺就会比较简单,从而该实施方式可以简化生成工艺。In this embodiment, the first area can be used to identify the pressing parameters of the input operation, and the second area can be used to identify the touch parameters of the input operation. The hardware circuits of the first area and the second area can be completely the same, so that the production process of the electronic device is relatively simple, and this embodiment can simplify the production process.
本实施例中,步骤301可以包括:In this embodiment, step 301 may include:
当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述按压操作所按压的区域作为第一区域,并获取所述按压操作的按压参数;When an input pressing operation and a touch operation with a sliding track are detected on the touch screen, the area pressed by the pressing operation is used as the first area, and the pressing parameters of the pressing operation are acquired;
步骤302可以包括:Step 302 may include:
当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述触摸操作所触摸的区域作为第二区域,并获取所述触摸操作的触摸参数。When an input pressing operation and a touch operation with a sliding track are detected on the touch screen, the area touched by the touch operation is taken as the second area, and the touch parameters of the touch operation are acquired.
该实施方式中,上述按压操作可以理解为按压力度大小特定阈值的操作,而上述触摸操作可以是存在触摸轨迹的操作或者按压力度小于特定阈值的操作。In this embodiment, the above-mentioned pressing operation may be understood as an operation with a specific threshold of pressing force, and the above-mentioned touch operation may be an operation with a touch track or an operation with a pressing force smaller than a specific threshold.
该实施方式中,可以实现当检测到按压操作时,将按压操作对应的区域定义为上述第一区域,以及将检测到触摸操作时,将触摸操作对应的区域定义为上述第二区域。这样可以实现用户在操作时更加便捷,因为用户不需要考虑在什么区域进行按压操作,以及在什么区域进行触摸操作,只需要进行这两个操作就可以对电子设备进行控制。In this embodiment, when a pressing operation is detected, the area corresponding to the pressing operation can be defined as the above-mentioned first area, and when a touch operation is detected, the area corresponding to the touch operation can be defined as the above-mentioned second area. In this way, it is more convenient for the user to operate, because the user does not need to consider in which area to perform the pressing operation and which area to perform the touch operation, and only need to perform these two operations to control the electronic device.
303、依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令。303. Generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation.
本实施例中,步骤303可以包括:In this embodiment, step 303 may include:
生成用于对当前受控对象进行控制且包含所述按压操作的按压参数和所述触摸操作的触摸参数控制命令。A touch parameter control command for controlling the current controlled object and including the pressing parameter of the pressing operation and the touch operation is generated.
该实施方式中,可以实现生成包括上述按压参数和触摸参数的控制命令。例如:上述控制命令包括按压位置和按压力度,以及触摸轨迹,那么,该控制命令就可以处于按压位置的显示对象进行按压,以及按照触摸轨迹进行移动等。In this embodiment, it is possible to generate a control command including the above-mentioned pressing parameters and touch parameters. For example, the above control command includes the pressing position and pressing force, and the touch track. Then, the control command can be used to press the display object at the pressing position and move according to the touch track.
本实施例中,步骤303可以包括:In this embodiment, step 303 may include:
按照预先获取的控制命令生成规则生成与所述按压操作的按压参数和所述触摸操作的触摸参数对应且用于对当前受控对象进行控制的控制命令。A control command corresponding to the pressing parameter of the pressing operation and the touch parameter of the touch operation and used for controlling the current controlled object is generated according to the control command generation rule acquired in advance.
其中,上述控制命令生成规则可以是预先设置好的,例如:预先设置好什么样的按压参数和触摸参考生成什么样的控制命令。且生成的控制命令还可以是针对不同的受控对象生成不同的控制命令。或者还可以是预先设置好按压参数和触摸参数与控制命令的对应关系,再根据该对应关系生成控制命令。Wherein, the above-mentioned control command generation rule may be preset, for example, what kind of pressing parameters and what kind of control commands are generated by touch reference are preset. And the generated control commands may also be different control commands generated for different controlled objects. Alternatively, the corresponding relationship between the pressing parameter and the touch parameter and the control command may be preset, and then the control command is generated according to the corresponding relationship.
304、使用所述控制命令对所述当前受控对象进行控制。304. Use the control command to control the current controlled object.
本实施例中,上述步骤304可以包括:In this embodiment, the above step 304 may include:
使用所述控制命令点亮所述触控屏。The touch screen is illuminated using the control command.
该实施方式中,可以实现通过按压操作和触摸操作点亮触控屏,从而可以实现增加人机交互方式。另外,该实施方式中,上述当前受对象可以理解为触控屏。In this implementation manner, the touch screen can be illuminated through pressing operations and touch operations, so that the human-computer interaction mode can be increased. In addition, in this embodiment, the above-mentioned current recipient may be understood as a touch screen.
本实施例中,步骤304可以包括:In this embodiment, step 304 may include:
使用所述控制命令解锁所述触控屏所属的电子设备。Using the control command to unlock the electronic device to which the touch screen belongs.
该实施方式中,可以通过按压操作和触摸操作解锁电子设备,从而实现快速对电子设备进行解锁。该实施方式中,上述当前受对象可以理解为电子设备的锁控件。In this embodiment, the electronic device can be unlocked through a pressing operation and a touch operation, so as to realize the rapid unlocking of the electronic device. In this embodiment, the above-mentioned current subject can be understood as the lock control of the electronic device.
本实施例中,步骤304可以包括:In this embodiment, step 304 may include:
使用所述控制命令对所述触控屏的显示对象进行控制。The display objects of the touch screen are controlled by using the control commands.
该实施方式中,可以通过按压操作和触摸操作对触控屏的显示对象进行控制,从而可以增加人机交互方式。In this implementation manner, the display objects of the touch screen can be controlled through pressing operations and touch operations, so that the man-machine interaction mode can be increased.
本实施例中,上述方法还可以包括如下步骤:In this embodiment, the above method may further include the following steps:
305、在所述第一区域显示第一类应用程序的信息,其中,所述第一类应用程序包括支持按压触控的应用程序。305. Display information of a first type of application program in the first area, where the first type of application program includes an application program that supports press and touch.
306、在所述第二区域显示第二类应用程序的信息,其中,所述第二类应用程序包括不支持按压触控的应用程序。306. Display information of a second type of application program in the second area, where the second type of application program includes an application program that does not support press-to-touch.
该实施方式中,上述信息可以是应用程序的图标,或者应用程序的显示界面、或者应用程序的显示界面中特定的显示对象等。In this embodiment, the above-mentioned information may be an icon of an application program, or a display interface of the application program, or a specific display object in the display interface of the application program, or the like.
该实施方式中,可以实现将支持按压触控的应用程序的信息在第一区域中显示,以及将不支持按压触控的应用程序的信息在第二区域中显示。这样可以清楚地向用户提示哪些应用程序支持按压操作,哪些应用程序不支持按压操作,以避免用户对不支持按压操作的应用程序进行按压操作,以浪费用户时间和设备功耗。In this implementation manner, it is possible to display the information of the application program that supports the touch-pressing in the first area, and display the information of the application that does not support the touch-pressing in the second area. In this way, the user can be clearly prompted which applications support the pressing operation and which applications do not support the pressing operation, so as to prevent the user from pressing the application programs that do not support the pressing operation, thereby wasting user time and device power consumption.
本实施例中,在图1所示的实施例的基础上增加了多种可选的实施方式,且都可以实现增加电子设备的人机交互方式。In this embodiment, a variety of optional implementation manners are added on the basis of the embodiment shown in FIG. 1 , and all of them can realize the addition of a human-computer interaction manner of the electronic device.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例一至二实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例一和实施例二。The following are device embodiments of the present invention, which are used to execute the methods implemented by the first to second method embodiments of the present invention. For convenience of description, only the parts related to the embodiments of the present invention are shown, and the specific technical details are not disclosed. , please refer to Embodiment 1 and Embodiment 2 of the present invention.
请参阅图4,图4是本发明实施例提供的一种按压触控装置的结构示意图,如图4所示,包括:接收单元41、生成单元42和控制单元43,其中:Please refer to FIG. 4 . FIG. 4 is a schematic structural diagram of a touch-pressing device provided by an embodiment of the present invention. As shown in FIG. 4 , it includes: a receiving unit 41 , a generating unit 42 and a control unit 43 , wherein:
所述接收单元41,用于接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数。The receiving unit 41 is configured to receive a pressing operation input in the first area of the touch screen, and acquire pressing parameters of the pressing operation.
上述按压操作可以理解为用户按压触控屏的第一区域而输入的操作。The above pressing operation can be understood as an operation input by the user by pressing the first area of the touch screen.
其中,上述按压参数可以包括如下至少一项:Wherein, the above-mentioned pressing parameters may include at least one of the following:
按压时间、按压力度、按压位置和按压面积。Compression time, compression strength, compression location and compression area.
接收单元41还用于接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数。The receiving unit 41 is further configured to receive a touch operation input in the second area of the touch screen, and acquire touch parameters of the touch operation.
上述触摸操作可以理解为用户触摸触控屏的第二区域而输入的操作。其中,上述触摸参数可以包括如下至少一项:The above touch operation can be understood as an operation input by the user by touching the second area of the touch screen. Wherein, the above-mentioned touch parameters may include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
本实施例中,上述第一区域可以是上述触控屏中存在压力感应的区域,而上述第二区域可以是存在触摸感应的触摸区域。例如:如图2所示,触控屏以中间位置上下划分为第一区域和第二区域,当然,图2仅是举例,本实施例中,对第一区域和第二区域的位置不作限定,例如:第一区域和第二区域的区域大小可以是不相等的,或者第一区域和第二区域可以是以中间位置左右划分的两个区域。In this embodiment, the first area may be a pressure-sensitive area in the touch screen, and the second area may be a touch-sensitive touch area. For example, as shown in FIG. 2 , the touch screen is divided into a first area and a second area up and down at the middle position. Of course, FIG. 2 is only an example. In this embodiment, the positions of the first area and the second area are not limited. For example, the area sizes of the first area and the second area may be unequal, or the first area and the second area may be two areas that are divided into left and right in the middle.
所述生成单元42,用于依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令。The generating unit 42 is configured to generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touching operation.
本实施例中,生成单元42可以是按照特定控制命令生成规则或者按照参数与控制控制命令的对应关系生成上述控制命令。In this embodiment, the generating unit 42 may generate the above control command according to a specific control command generation rule or according to the corresponding relationship between parameters and control control commands.
控制单元43,用于使用所述控制命令对所述当前受控对象进行控制。The control unit 43 is configured to use the control command to control the current controlled object.
通过上述单元可以实现根据按压参数和触摸参数对当前受控对象进行控制。Through the above unit, the current controlled object can be controlled according to the pressing parameter and the touch parameter.
本实施例中,上述当前受控对象可以是电子设备上硬件对象,例如:触控屏、扬声器等;或者上述当前受控对象可以是电子设备上虚拟对象,例如:触控屏上显示的对象。In this embodiment, the current controlled object may be a hardware object on an electronic device, such as a touch screen, a speaker, etc.; or the current controlled object may be a virtual object on the electronic device, such as an object displayed on a touch screen .
本实施例中,上述装置可以应用于任何能感应触控屏的压力的电子设备,例如:手机、平板电脑、电子阅读器、遥控器、PC、笔记本电脑、车载设备、网络电视、可穿戴设备等能感应触控屏的压力的电子设备。In this embodiment, the above device can be applied to any electronic device that can sense the pressure of the touch screen, such as: mobile phone, tablet computer, e-reader, remote control, PC, notebook computer, in-vehicle device, Internet TV, wearable device Electronic devices that can sense the pressure on the touch screen.
本实施例中,接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;使用所述控制命令对所述当前受控对象进行控制。由于是依据按压操作的按压参数和触摸操作的触摸参数生成控制命令,即可以使用这两个参数进行人机交互,而这两个参数是存在多种组合方式,这样相比现有技术仅只使用按压参数进行人机交互,本发明实施例可以增加电子设备的人机交互的方式。In this embodiment, a pressing operation input in the first area of the touch screen is received, and pressing parameters of the pressing operation are acquired; the touch operation input in the second area of the touch screen is received, and the touch operation is acquired touch parameter of the operation; generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation; use the control command to control the current controlled object. Since the control command is generated based on the pressing parameters of the pressing operation and the touch parameters of the touch operation, the two parameters can be used for human-computer interaction, and there are various combinations of these two parameters. The human-computer interaction is performed by pressing the parameters, and the embodiment of the present invention can increase the human-computer interaction mode of the electronic device.
请参阅图5,图5是本发明实施例提供的另一种按压触控装置的结构示意图,如图5所示,包括:接收单元51、生成单元52和控制单元53,其中:Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of another touch-pressing device provided by an embodiment of the present invention. As shown in FIG. 5 , it includes: a receiving unit 51 , a generating unit 52 and a control unit 53 , wherein:
接收单元51,用于接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数。The receiving unit 51 is configured to receive a pressing operation input in the first area of the touch screen, and obtain pressing parameters of the pressing operation.
接收单元51还用于接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数。The receiving unit 51 is further configured to receive a touch operation input in the second area of the touch screen, and acquire touch parameters of the touch operation.
本实施例中,上述按压操作的按压参数可以包括如下至少一项:In this embodiment, the pressing parameters of the pressing operation may include at least one of the following:
按压时间、按压力度、按压位置和按压面积;Pressing time, pressing force, pressing position and pressing area;
上述触摸操作的触摸参数可以包括如下至少一项:The touch parameters of the above touch operation may include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
该实施方式中可以实现提供多种人机交互方式,例如:按压时间可以与触摸时间、触摸位置、触摸时长和触摸手势中的至少一项组合,同样的,按压力度、按压位置和按压面积也可以与触摸时间、触摸位置、触摸时长和触摸手势中的至少一项组合,以及按压时间、按压力度、按压位置和按压面积中任意两项或者三项或者四项也可以与触摸时间、触摸位置、触摸时长和触摸手势的至少一项组合。In this embodiment, a variety of human-computer interaction modes can be provided. For example, the pressing time can be combined with at least one of touch time, touch position, touch duration and touch gesture. Similarly, the pressing force, pressing position and pressing area can also be combined. It can be combined with at least one of touch time, touch position, touch duration and touch gesture, and any two or three or four items of pressing time, pressing force, pressing position and pressing area can also be combined with touch time, touch position , at least one combination of touch duration and touch gesture.
本实施例中,上述第一区域可以为所述触控屏上存在压力感应的区域,所述第二区域为所述触控屏上不存在压力感应的触摸区域。In this embodiment, the first area may be a pressure-sensitive area on the touch screen, and the second area is a touch area without pressure sensitivity on the touch screen.
例如:触控屏中的第一区域中存在压力触控单元,例如:感应传感器,从而可以检测到上述按压操作,以及按压操作的按压参数。而触控屏的第二区域存在电容触控单元,从而可以检测到上述触摸操作,以及触摸操作的触摸参数。而往往存在压力触控单元的触控屏是对存在电容触控单元的触控屏的改进,即存在压力触控单元的触控屏的成本会比较高,这样该实施方式中只有部分区域是存在压力触控单元的触控屏,从而可以节减电子设备的成本。For example, a pressure touch unit, such as an inductive sensor, exists in the first area of the touch screen, so that the above-mentioned pressing operation and the pressing parameters of the pressing operation can be detected. On the other hand, there is a capacitive touch unit in the second area of the touch screen, so that the above-mentioned touch operation and the touch parameters of the touch operation can be detected. However, a touch screen with a pressure touch unit is often an improvement on a touch screen with a capacitive touch unit, that is, the cost of a touch screen with a pressure touch unit is relatively high, so in this embodiment, only part of the area is There is a touch screen with a pressure touch unit, so that the cost of electronic equipment can be reduced.
本实施例中,上述第一区域和上述第二区域还可以都是存在压力感应的区域,其中,所述第一区域接收到输入操作时确定其为按压操作并获取按压参数,所述第二区域接收到输入操作时确定其为触摸操作并获取触摸参数。In this embodiment, the above-mentioned first area and the above-mentioned second area may also both be pressure-sensitive areas, wherein when the first area receives an input operation, it is determined to be a pressing operation and a pressing parameter is obtained, and the second area When the area receives an input operation, it is determined as a touch operation and the touch parameters are obtained.
该实施方式中可以实现在第一区域可以用于识别输入操作的按压参数,而第二区域可以用于识别输入操作的触摸参数。而第一区域和第二区域的硬件电路完全可以相同,这样电子设备的生产工艺就会比较简单,从而该实施方式可以简化生成工艺。In this embodiment, the first area can be used to identify the pressing parameters of the input operation, and the second area can be used to identify the touch parameters of the input operation. The hardware circuits of the first area and the second area can be completely the same, so that the production process of the electronic device is relatively simple, and this embodiment can simplify the production process.
本实施例中,接收单元51可以用于当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述按压操作所按压的区域作为第一区域,并获取所述按压操作的按压参数;In this embodiment, the receiving unit 51 may be configured to use the area pressed by the pressing operation as the first area when detecting an input pressing operation and a touch operation with a sliding track on the touch screen, and obtain a pressing parameter of the pressing operation;
接收单元51还可以用于当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述触摸操作所触摸的区域作为第二区域,并获取所述触摸操作的触摸参数。The receiving unit 51 may also be configured to use the area touched by the touch operation as the second area when detecting an input pressing operation and a touch operation with a sliding track on the touch screen, and acquire the touch operation touch parameters.
该实施方式中,上述按压操作可以理解为按压力度大小特定阈值的操作,而上述触摸操作可以是存在触摸轨迹的操作或者按压力度小于特定阈值的操作。In this embodiment, the above-mentioned pressing operation may be understood as an operation with a specific threshold of pressing force, and the above-mentioned touch operation may be an operation with a touch track or an operation with a pressing force smaller than a specific threshold.
该实施方式中,可以实现当检测到按压操作时,将按压操作对应的区域定义为上述第一区域,以及将检测到触摸操作时,将触摸操作对应的区域定义为上述第二区域。这样可以实现用户在操作时更加便捷,因为用户不需要考虑在什么区域进行按压操作,以及在什么区域进行触摸操作,只需要进行这两个操作就可以对电子设备进行控制。In this embodiment, when a pressing operation is detected, the area corresponding to the pressing operation can be defined as the above-mentioned first area, and when a touch operation is detected, the area corresponding to the touch operation can be defined as the above-mentioned second area. In this way, it is more convenient for the user to operate, because the user does not need to consider in which area to perform the pressing operation and which area to perform the touch operation, and only need to perform these two operations to control the electronic device.
生成单元52,用于依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令。The generating unit 52 is configured to generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touching operation.
本实施例中,生成单元52可以用于生成用于对当前受控对象进行控制且包含所述按压操作的按压参数和所述触摸操作的触摸参数控制命令。In this embodiment, the generating unit 52 may be configured to generate a control command for controlling the current controlled object and including a pressing parameter of the pressing operation and a touch parameter control command of the touch operation.
该实施方式中,可以实现生成包括上述按压参数和触摸参数的控制命令。例如:上述控制命令包括按压位置和按压力度,以及触摸轨迹,那么,该控制命令就可以处于按压位置的显示对象进行按压,以及按照触摸轨迹进行移动等。In this embodiment, it is possible to generate a control command including the above-mentioned pressing parameters and touch parameters. For example, the above control command includes the pressing position and pressing force, and the touch track. Then, the control command can be used to press the display object at the pressing position and move according to the touch track.
生成单元52可以用于按照预先获取的控制命令生成规则生成与所述按压操作的按压参数和所述触摸操作的触摸参数对应且用于对当前受控对象进行控制的控制命令。The generating unit 52 may be configured to generate a control command corresponding to the pressing parameter of the pressing operation and the touch parameter of the touch operation and used for controlling the current controlled object according to the control command generation rule acquired in advance.
其中,上述控制命令生成规则可以是预先设置好的,例如:预先设置好什么样的按压参数和触摸参考生成什么样的控制命令。且生成的控制命令还可以是针对不同的受控对象生成不同的控制命令。或者还可以是预先设置好按压参数和触摸参数与控制命令的对应关系,再根据该对应关系生成控制命令。Wherein, the above-mentioned control command generation rule may be preset, for example, what kind of pressing parameters and what kind of control commands are generated by touch reference are preset. And the generated control commands may also be different control commands generated for different controlled objects. Alternatively, the corresponding relationship between the pressing parameter and the touch parameter and the control command may be preset, and then the control command is generated according to the corresponding relationship.
控制单元53,用于使用所述控制命令对所述当前受控对象进行控制。The control unit 53 is configured to use the control command to control the current controlled object.
本实施例中,控制单元53可以用于使用所述控制命令点亮所述触控屏。In this embodiment, the control unit 53 may be configured to use the control command to light up the touch screen.
该实施方式中,可以实现通过按压操作和触摸操作点亮触控屏,从而可以实现增加人机交互方式。另外,该实施方式中,上述当前受对象可以理解为触控屏。In this implementation manner, the touch screen can be illuminated through pressing operations and touch operations, so that the human-computer interaction mode can be increased. In addition, in this embodiment, the above-mentioned current recipient may be understood as a touch screen.
本实施例中,控制单元53可以用于使用所述控制命令解锁所述触控屏所属的电子设备。In this embodiment, the control unit 53 may be configured to use the control command to unlock the electronic device to which the touch screen belongs.
该实施方式中,可以通过按压操作和触摸操作解锁电子设备,从而实现快速对电子设备进行解锁。该实施方式中,上述当前受对象可以理解为电子设备的锁控件。In this embodiment, the electronic device can be unlocked through a pressing operation and a touch operation, so as to realize the rapid unlocking of the electronic device. In this embodiment, the above-mentioned current subject can be understood as the lock control of the electronic device.
本实施例中,控制单元53可以用于使用所述控制命令对所述触控屏的显示对象进行控制。In this embodiment, the control unit 53 may be configured to use the control command to control the display object of the touch screen.
该实施方式中,可以通过按压操作和触摸操作对触控屏的显示对象进行控制,从而可以增加人机交互方式。In this implementation manner, the display objects of the touch screen can be controlled through pressing operations and touch operations, so that the man-machine interaction mode can be increased.
本实施例中,上述装置还可以包括:In this embodiment, the above device may further include:
显示单元54,用于在所述第一区域显示第一类应用程序的信息,其中,所述第一类应用程序包括支持按压触控的应用程序;A display unit 54, configured to display information of a first type of application program in the first area, wherein the first type of application program includes an application program that supports press and touch;
所述显示单元54还用于在所述第二区域显示第二类应用程序的信息,其中,所述第二类应用程序包括不支持按压触控的应用程序。The display unit 54 is further configured to display information of a second type of application program in the second area, where the second type of application program includes an application program that does not support touch-pressing.
该实施方式中,上述信息可以是应用程序的图标,或者应用程序的显示界面、或者应用程序的显示界面中特定的显示对象等。In this embodiment, the above-mentioned information may be an icon of an application program, or a display interface of the application program, or a specific display object in the display interface of the application program, or the like.
该实施方式中,可以实现将支持按压触控的应用程序的信息在第一区域中显示,以及将不支持按压触控的应用程序的信息在第二区域中显示。这样可以清楚地向用户提示哪些应用程序支持按压操作,哪些应用程序不支持按压操作,以避免用户对不支持按压操作的应用程序进行按压操作,以浪费用户时间和设备功耗。In this implementation manner, it is possible to display the information of the application program that supports the touch-pressing in the first area, and display the information of the application that does not support the touch-pressing in the second area. In this way, the user can be clearly prompted which applications support the pressing operation and which applications do not support the pressing operation, so as to prevent the user from pressing the application programs that do not support the pressing operation, thereby wasting user time and device power consumption.
本实施例中,在图4所示的实施例的基础上增加了多种可选的实施方式,且都可以实现增加电子设备的人机交互方式。In this embodiment, on the basis of the embodiment shown in FIG. 4 , a variety of optional implementation manners are added, and all of them can realize the addition of the human-computer interaction manner of the electronic device.
请参阅图6,图6是本发明实施例提供的另一种按压触控装置的结构示意图,如图6所示,包括:壳体61、处理器62、存储器63、显示屏64、网络接口65和通信总线66,其中,处理器62、存储器63、显示屏64、网络接口65和通信总线66安置于壳体61围成的空间内部,通信总线66用于实现处理器62、存储器63、显示屏64和网络接口65之间连接通信,处理器62执行存储器63中存储的程序用于实现以下方法:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of another touch-pressing device provided by an embodiment of the present invention. As shown in FIG. 6 , it includes: a casing 61 , a processor 62 , a memory 63 , a display screen 64 , and a network interface 65 and a communication bus 66, wherein the processor 62, the memory 63, the display screen 64, the network interface 65 and the communication bus 66 are arranged inside the space enclosed by the housing 61, and the communication bus 66 is used to realize the processor 62, the memory 63, Communication is connected between the display screen 64 and the network interface 65, and the processor 62 executes the program stored in the memory 63 to implement the following methods:
接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;receiving a pressing operation input in the first area of the touch screen, and acquiring pressing parameters of the pressing operation;
接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;receiving a touch operation input in the second area of the touch screen, and acquiring touch parameters of the touch operation;
依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;generating a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touching operation;
使用所述控制命令对所述当前受控对象进行控制。The current controlled object is controlled using the control command.
本实施例中,所述按压操作的按压参数可以包括如下至少一项:In this embodiment, the pressing parameter of the pressing operation may include at least one of the following:
按压时间、按压力度、按压位置和按压面积;Pressing time, pressing force, pressing position and pressing area;
所述触摸操作的触摸参数包括如下至少一项:The touch parameters of the touch operation include at least one of the following:
触摸时间、触摸位置、触摸时长和触摸手势。Touch time, touch location, touch duration, and touch gestures.
本实施例中,所述第一区域可以为所述触控屏上存在压力感应的区域,所述第二区域可以为所述触控屏上不存在压力感应的触摸区域;或者In this embodiment, the first area may be a pressure-sensitive area on the touch screen, and the second area may be a non-pressure-sensitive touch area on the touch screen; or
所述第一区域和所述第二区域可以都是存在压力感应的区域,其中,所述第一区域接收到输入操作时确定其为按压操作并获取按压参数,所述第二区域接收到输入操作时确定其为触摸操作并获取触摸参数。Both the first area and the second area may be pressure-sensitive areas, wherein when the first area receives an input operation, it is determined that it is a pressing operation and a pressing parameter is acquired, and the second area receives the input During the operation, it is determined that it is a touch operation and the touch parameters are obtained.
本实施例中,处理器62执行的接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数的程序,可以包括:In this embodiment, the program performed by the processor 62 to receive the pressing operation input in the first area of the touch screen and obtain the pressing parameters of the pressing operation may include:
当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述按压操作所按压的区域作为第一区域,并获取所述按压操作的按压参数;When an input pressing operation and a touch operation with a sliding track are detected on the touch screen, the area pressed by the pressing operation is used as the first area, and the pressing parameters of the pressing operation are acquired;
本实施例中,处理器62执行的接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数的程序,可以包括:In this embodiment, the program performed by the processor 62 to receive a touch operation input in the second area of the touch screen and acquire touch parameters of the touch operation may include:
当在所述触控屏上检测到输入的按压操作和存在滑动轨迹的触摸操作时,将所述触摸操作所触摸的区域作为第二区域,并获取所述触摸操作的触摸参数。When an input pressing operation and a touch operation with a sliding track are detected on the touch screen, the area touched by the touch operation is taken as the second area, and the touch parameters of the touch operation are acquired.
本实施例中,处理器62执行的使用所述控制命令对所述当前受控对象进行控制的程序,可以包括:In this embodiment, the program executed by the processor 62 to use the control command to control the current controlled object may include:
使用所述控制命令点亮所述触控屏;或者lighting the touch screen using the control command; or
使用所述控制命令解锁所述触控屏所属的电子设备;或者using the control command to unlock the electronic device to which the touch screen belongs; or
使用所述控制命令对所述触控屏的显示对象进行控制。The display objects of the touch screen are controlled by using the control commands.
本实施例中,处理器62执行的程序还可以包括:In this embodiment, the program executed by the processor 62 may further include:
在所述第一区域显示第一类应用程序的信息,其中,所述第一类应用程序包括支持按压触控的应用程序;Display information of a first type of application in the first area, wherein the first type of application includes an application that supports touch-press;
在所述第二区域显示第二类应用程序的信息,其中,所述第二类应用程序包括不支持按压触控的应用程序。Information of a second type of application program is displayed in the second area, wherein the second type of application program includes an application program that does not support touch-pressing.
本实施例中,处理器62执行的依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令的程序,可以包括:In this embodiment, the program executed by the processor 62 to generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation may include:
生成用于对当前受控对象进行控制且包含所述按压操作的按压参数和所述触摸操作的触摸参数控制命令;或者generating a touch parameter control command for controlling the current controlled object and including the pressing parameter of the pressing operation and the touch operation; or
按照预先获取的控制命令生成规则生成与所述按压操作的按压参数和所述触摸操作的触摸参数对应且用于对当前受控对象进行控制的控制命令。A control command corresponding to the pressing parameter of the pressing operation and the touch parameter of the touch operation and used for controlling the current controlled object is generated according to the control command generation rule acquired in advance.
本实施例中,上述装置可以应用于任何能感应触控屏的压力的电子设备,例如:手机、平板电脑、电子阅读器、遥控器、PC、笔记本电脑、车载设备、网络电视、可穿戴设备等能感应触控屏的压力的电子设备。In this embodiment, the above device can be applied to any electronic device that can sense the pressure of the touch screen, such as: mobile phone, tablet computer, e-reader, remote control, PC, notebook computer, in-vehicle device, Internet TV, wearable device Electronic devices that can sense the pressure on the touch screen.
本实施例中,接收在触控屏的第一区域输入的按压操作,并获取所述按压操作的按压参数;接收在所述触控屏的第二区域输入的触摸操作,并获取所述触摸操作的触摸参数;依据所述按压操作的按压参数和所述触摸操作的触摸参数生成用于对当前受控对象进行控制的控制命令;使用所述控制命令对所述当前受控对象进行控制。由于是依据按压操作的按压参数和触摸操作的触摸参数生成控制命令,即可以使用这两个参数进行人机交互,而这两个参数是存在多种组合方式,这样相比现有技术仅只使用按压参数进行人机交互,本发明实施例可以增加电子设备的人机交互的方式。In this embodiment, a pressing operation input in the first area of the touch screen is received, and pressing parameters of the pressing operation are acquired; the touch operation input in the second area of the touch screen is received, and the touch operation is acquired touch parameter of the operation; generate a control command for controlling the current controlled object according to the pressing parameter of the pressing operation and the touch parameter of the touch operation; use the control command to control the current controlled object. Since the control command is generated based on the pressing parameters of the pressing operation and the touch parameters of the touch operation, the two parameters can be used for human-computer interaction, and there are various combinations of these two parameters. The human-computer interaction is performed by pressing the parameters, and the embodiment of the present invention can increase the human-computer interaction mode of the electronic device.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM for short).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and of course, the scope of the rights of the present invention cannot be limited by this. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610011198.2A CN105677223B (en) | 2016-01-07 | 2016-01-07 | A press touch method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610011198.2A CN105677223B (en) | 2016-01-07 | 2016-01-07 | A press touch method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677223A CN105677223A (en) | 2016-06-15 |
CN105677223B true CN105677223B (en) | 2019-07-02 |
Family
ID=56299590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610011198.2A Expired - Fee Related CN105677223B (en) | 2016-01-07 | 2016-01-07 | A press touch method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105677223B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10691166B2 (en) | 2016-07-04 | 2020-06-23 | Huawei Technologies Co., Ltd. | Wearable electronic device having multiple touch sensitive areas outside of viewable display area |
CN106503503A (en) * | 2016-10-20 | 2017-03-15 | 宁波江东大金佰汇信息技术有限公司 | A kind of user behavior encryption method and system based on computer big data |
CN106503599B (en) * | 2016-11-23 | 2019-09-17 | 北京小米移动软件有限公司 | Display methods and device, electronic equipment |
CN107977142A (en) * | 2017-11-28 | 2018-05-01 | 浪潮金融信息技术有限公司 | Screen touch control method and device, computer-readable storage medium, terminal |
WO2019169583A1 (en) * | 2018-03-07 | 2019-09-12 | 广东品胜电子股份有限公司 | Method and device for determining touch command, touch screen device and computer storage medium |
CN108664190B (en) | 2018-04-18 | 2019-07-12 | Oppo广东移动通信有限公司 | Page display method, device, mobile terminal and storage medium |
CN110149439B (en) * | 2019-06-28 | 2021-07-20 | Oppo广东移动通信有限公司 | Housing assembly, electronic device and control method thereof |
EP3992768A4 (en) * | 2019-12-30 | 2022-08-24 | Huawei Technologies Co., Ltd. | Human-computer interaction method, device, and system |
CN114742154A (en) * | 2022-04-11 | 2022-07-12 | 网易(杭州)网络有限公司 | Method, device, electronic device and storage medium for generating user portrait |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102566908A (en) * | 2011-12-13 | 2012-07-11 | 鸿富锦精密工业(深圳)有限公司 | Electronic equipment and page zooming method for same |
CN102566818A (en) * | 2011-12-17 | 2012-07-11 | 鸿富锦精密工业(深圳)有限公司 | Electronic device with touch screen and screen unlocking method |
CN102725711A (en) * | 2010-01-27 | 2012-10-10 | 微软公司 | Edge gestures |
CN103365436A (en) * | 2012-03-28 | 2013-10-23 | 赵旭阳 | Touch mouse and operation method thereof |
CN103984501A (en) * | 2014-05-30 | 2014-08-13 | 苏州天鸣信息科技有限公司 | Method and device for copying and pasting text segment based on touch screen and mobile terminal of device |
CN104063164A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Method and device for screen control |
CN104898975A (en) * | 2015-05-29 | 2015-09-09 | 努比亚技术有限公司 | Mobile terminal control method and mobile terminal |
CN204810331U (en) * | 2015-06-29 | 2015-11-25 | 纳智源科技(唐山)有限责任公司 | Cell -phone pressure touch devices |
-
2016
- 2016-01-07 CN CN201610011198.2A patent/CN105677223B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102725711A (en) * | 2010-01-27 | 2012-10-10 | 微软公司 | Edge gestures |
CN102566908A (en) * | 2011-12-13 | 2012-07-11 | 鸿富锦精密工业(深圳)有限公司 | Electronic equipment and page zooming method for same |
CN102566818A (en) * | 2011-12-17 | 2012-07-11 | 鸿富锦精密工业(深圳)有限公司 | Electronic device with touch screen and screen unlocking method |
CN103365436A (en) * | 2012-03-28 | 2013-10-23 | 赵旭阳 | Touch mouse and operation method thereof |
CN104063164A (en) * | 2013-03-22 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Method and device for screen control |
CN103984501A (en) * | 2014-05-30 | 2014-08-13 | 苏州天鸣信息科技有限公司 | Method and device for copying and pasting text segment based on touch screen and mobile terminal of device |
CN104898975A (en) * | 2015-05-29 | 2015-09-09 | 努比亚技术有限公司 | Mobile terminal control method and mobile terminal |
CN204810331U (en) * | 2015-06-29 | 2015-11-25 | 纳智源科技(唐山)有限责任公司 | Cell -phone pressure touch devices |
Also Published As
Publication number | Publication date |
---|---|
CN105677223A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105677223B (en) | A press touch method and device | |
US10996834B2 (en) | Touchscreen apparatus user interface processing method and touchscreen apparatus | |
WO2017088131A1 (en) | Method and apparatus for rapidly dividing screen, electronic device, display interface and storage medium | |
US9513790B2 (en) | Electronic device and method for unlocking screen of electronic device | |
AU2013276998B2 (en) | Mouse function provision method and terminal implementing the same | |
WO2018196699A1 (en) | Method for displaying fingerprint recognition region, and mobile terminal | |
US11157127B2 (en) | User terminal apparatus and controlling method thereof | |
KR102521333B1 (en) | Method for displaying user interface related to user authentication and electronic device for the same | |
TW201327350A (en) | Electronic device with touch screen and screen unlocking method thereof | |
CN105518609A (en) | Method and apparatus for providing multiple applications | |
KR20140089224A (en) | Device and method for executing operation based on touch-input | |
JP2013143129A (en) | Screen enlargement device and method in electronic apparatus having touch screen | |
KR102091509B1 (en) | Method for processing character input and apparatus for the same | |
CN108845752A (en) | Touch operation method and device, storage medium and electronic equipment | |
CN104898880A (en) | Control method and electronic equipment | |
CN104182161A (en) | Method and device for opening screen functional area | |
US11460971B2 (en) | Control method and electronic device | |
KR20150095523A (en) | Electronic apparatus and method for extracting color in electronic apparatus | |
KR102009258B1 (en) | Fingerprint event processing method, device, and terminal | |
KR102396736B1 (en) | Binding of an apparatus to a computing device | |
KR102277217B1 (en) | Electronic device and method for setting up blocks | |
CN106845413B (en) | Fingerprint identification method and mobile terminal | |
CN107765936A (en) | A kind of page processing method, device and intelligent terminal | |
US11934503B2 (en) | Electronic apparatus and control method thereof | |
US11144199B2 (en) | Electronic device and control method therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190702 |
|
CF01 | Termination of patent right due to non-payment of annual fee |