Touch method and terminal

文档序号:1676839 发布日期:2019-12-31 浏览:11次 中文

阅读说明:本技术 一种触控方法及终端 (Touch method and terminal ) 是由 徐杰 于 2017-12-28 设计创作,主要内容包括:本申请的实施例提供一种触控方法及终端,涉及通信技术领域,可降低多种触摸手势之间的误操作几率。该方法包括:接收用户对第一触摸对象输入的第一触摸操作,第一触摸对象为支持压力识别手势和长按手势的控件元素;显示与压力识别手势对应的第一界面;接收用户对第一触摸对象输入的第二触摸操作;显示与长按手势对应的第二界面;其中,在第一触摸操作中,施加在第一触摸对象上的压力值在第一时间阈值内满足第一预设条件,在第二时间阈值内达到识别压力识别手势的压力阈值,第二时间阈值大于第一时间阈值;在第二触摸操作中,施加在第一触摸对象上的压力值在第一时间阈值内满足第一预设条件,在第二时间阈值内未达到压力阈值。(The embodiment of the application provides a touch method and a terminal, relates to the technical field of communication, and can reduce the misoperation probability among multiple touch gestures. The method comprises the following steps: receiving a first touch operation input by a user on a first touch object, wherein the first touch object is a control element supporting a pressure recognition gesture and a long-press gesture; displaying a first interface corresponding to the pressure recognition gesture; receiving a second touch operation input by the user on the first touch object; displaying a second interface corresponding to the long-press gesture; in the first touch operation, a pressure value applied to the first touch object meets a first preset condition within a first time threshold, and reaches a pressure threshold for recognizing a pressure recognition gesture within a second time threshold, wherein the second time threshold is greater than the first time threshold; in the second touch operation, the pressure value applied to the first touch object meets a first preset condition within a first time threshold, and does not reach the pressure threshold within a second time threshold.)

A touch method is applied to a terminal with a touch screen, and the method comprises the following steps:

the terminal receives a first touch operation input by a user on a first touch object, wherein the first touch object is a control element supporting a pressure recognition gesture and a long-press gesture; in the first touch operation, a pressure value applied to the first touch object meets a first preset condition within a first time threshold value, and reaches a pressure threshold value for recognizing the pressure recognition gesture within a second time threshold value, wherein the second time threshold value is greater than the first time threshold value, and the second time threshold value is greater than a time threshold value for recognizing a long-press gesture by the terminal;

responding to the first touch operation, and displaying a first interface corresponding to the pressure recognition gesture by the terminal;

the terminal receives a second touch operation input by the user on the first touch object; in the second touch operation, the pressure value applied to the first touch object meets the first preset condition within the first time threshold, and does not reach a pressure threshold for recognizing the pressure recognition gesture within the second time threshold; or, in the second touch operation, the pressure value exerted on the first touch object does not satisfy the first preset condition within the first time threshold;

and responding to the second touch operation, and displaying a second interface corresponding to the long-press gesture by the terminal.

The method according to claim 1, after the terminal receives a first touch operation of a first touch object input by a user and before the terminal displays a first interface corresponding to the pressure recognition gesture, further comprising:

the terminal acquires a pressure value and a touch duration applied to the first touch object;

within the first time threshold, the terminal determines that the pressure value meets the first preset condition, wherein the first time threshold is a time threshold for the terminal to recognize the long press gesture;

and the terminal takes the second time threshold value as a time threshold value for identifying the long pressing gesture.

The method according to claim 1 or 2, wherein the pressure value satisfying a first preset condition comprises:

the pressure value falls into a preset first pressure range, the upper limit value of the first pressure range is smaller than the pressure threshold value for identifying the pressure identification gesture, and the lower limit value of the first pressure range is larger than 0; and/or the presence of a gas in the gas,

the increase speed of the pressure value is larger than a preset speed threshold value.

The method according to claim 2 or 3, wherein the terminal uses a second time threshold as the time threshold for recognizing the long press gesture, and comprises:

the terminal is internally pre-stored with a corresponding relation between the second time threshold and the pressure value, and the terminal takes the second time threshold corresponding to the pressure value as a time threshold for identifying the long pressing gesture according to the corresponding relation; alternatively, the first and second electrodes may be,

and the terminal is internally prestored with a functional relation between the second time threshold and the pressure value, substitutes the pressure value into the functional relation to obtain a second time threshold, and uses the second time threshold as a time threshold for identifying the long pressing gesture.

The method according to claim 3 or 4, wherein after the terminal uses the second time threshold as the time threshold for recognizing the long press gesture, the method further comprises:

within the second time threshold, if the pressure value is determined to meet a second preset condition, the terminal takes a third time threshold as a time threshold for identifying the long press gesture, and the third time threshold is greater than the second time threshold;

wherein the second preset condition comprises: the pressure value falls into a preset second pressure range, the upper limit value of the second pressure range is smaller than the pressure threshold value for identifying the pressure identification gesture, and the lower limit value of the second pressure range is larger than the upper limit value of the first pressure range; and/or the increase speed of the pressure value is larger than a preset speed threshold value.

The method according to claim 3 or 4, wherein after the terminal uses the second time threshold as the time threshold for recognizing the long press gesture, the method further comprises:

when the second time threshold is the maximum time threshold for identifying the long-press gesture, if the pressure value meets a second preset condition, the terminal still uses the second time threshold as the time threshold for identifying the long-press gesture.

A touch method is applied to a terminal with a touch screen, and the method comprises the following steps:

the terminal receives a first touch operation input by a user on a second touch object, wherein the second touch object is a control element supporting an area change gesture and a long-press gesture; in the first touch operation, a touch area applied to the second touch object meets a first preset condition within a first time threshold, and reaches an area threshold for recognizing the area change gesture within a second time threshold, wherein the second time threshold is greater than the first time threshold, and the second time threshold is greater than a time threshold for recognizing a long-press gesture by the terminal;

responding to the first touch operation, and displaying a first interface corresponding to the area change gesture by the terminal;

the terminal receives a second touch operation input by the user on the second touch object; wherein, in the second touch operation, the touch area applied on the second touch object satisfies the first preset condition within the first time threshold, but does not reach the area threshold within the second time threshold; or, in the second touch operation, the touch area applied to the second touch object does not satisfy the first preset condition within the first time threshold;

and responding to the second touch operation, and displaying a second interface corresponding to the long-press gesture by the terminal.

The method according to claim 7, after the terminal receives a first touch operation input by a user on a second touch object, and after the terminal displays a first interface corresponding to the area change gesture, further comprising:

the terminal acquires a touch area and a touch duration applied to the second touch object;

within the first time threshold, the terminal determines that the touch area meets the first preset condition, wherein the first time threshold is a time threshold for the terminal to recognize the long press gesture;

and the terminal takes the second time threshold value as a time threshold value for identifying the long pressing gesture.

The method according to claim 7 or 8, wherein the first preset condition comprises:

the touch area falls into a preset first area range, the upper limit value of the first area range is smaller than an area threshold value for identifying the area change gesture, and the lower limit value of the first area range is larger than 0; and/or the presence of a gas in the gas,

the increase speed of the touch area is larger than a preset speed threshold value.

The method according to claim 8 or 9, wherein the terminal uses a second time threshold as the time threshold for recognizing the long press gesture, and comprises:

the terminal is pre-stored with a corresponding relation between the second time threshold and the touch area, and the terminal takes the second time threshold corresponding to the touch area as a time threshold for identifying the long press gesture according to the corresponding relation; alternatively, the first and second electrodes may be,

and the terminal is pre-stored with a functional relation between the second time threshold and the touch area, substitutes the touch area into the functional relation to obtain a second time threshold, and uses the second time threshold as a time threshold for identifying the long press gesture.

The method according to claim 9 or 10, wherein after the terminal uses the second time threshold as the time threshold for recognizing the long press gesture, the method further comprises:

within the second time threshold, if the touch area is determined to meet a second preset condition, the terminal takes a third time threshold as a time threshold for identifying the long press gesture, and the third time threshold is greater than the second time threshold;

wherein the second preset condition comprises: the touch area falls into a preset second area range, the upper limit value of the second area range is smaller than the area threshold value for identifying the area change gesture, and the lower limit value of the second area range is larger than the upper limit value of the first area range; and/or the growth speed of the touch area is larger than a preset speed threshold value.

The method according to claim 9 or 10, wherein after the terminal uses the second time threshold as the time threshold for recognizing the long press gesture, the method further comprises:

when the second time threshold is the maximum time threshold for recognizing the long-press gesture, if the touch area meets a second preset condition, the terminal still uses the second time threshold as the time threshold for recognizing the long-press gesture.

A touch method is applied to a terminal with a touch screen, and the method comprises the following steps:

the terminal receives a first touch operation input by a user on a third touch object, wherein the third touch object is a control element supporting a pressure recognition gesture, an area change gesture and a long-press gesture; in the first touch operation, a pressure value applied to the third touch object firstly meets a preset condition within a first time threshold and reaches a pressure threshold for recognizing the pressure recognition gesture within a second time threshold, wherein the second time threshold is greater than the first time threshold, and the second time threshold is greater than a time threshold for recognizing a long-press gesture by the terminal;

responding to the first touch operation, and displaying a first interface corresponding to the pressure recognition gesture by the terminal; the terminal receives a second touch operation input by the user on the third touch object; wherein, in the second touch operation, a touch area applied on the third touch object first satisfies a preset condition within the first time threshold and reaches an area threshold for recognizing the area change recognition gesture within the second time threshold;

and responding to the two touch operations, and displaying a second interface corresponding to the area change gesture by the terminal.

The method of claim 13, further comprising:

the terminal acquires a pressure value, a touch area and a touch duration applied to the third touch object;

within the first time threshold, the terminal determines that the pressure value or the touch area firstly meets a preset condition, wherein the first time threshold is a time threshold of the terminal for identifying the long press gesture;

and the terminal takes the second time threshold value as a time threshold value for identifying the long pressing gesture.

The method according to claim 13 or 14, characterized in that the method further comprises:

the terminal receives a third touch operation input by a user on the third touch object;

responding to the three-touch operation, and displaying a third interface corresponding to the long-press gesture by the terminal; in the third touch operation, neither a pressure value nor a touch area applied to the third touch object satisfies the preset condition within the first time threshold.

A terminal, comprising:

an acquisition unit configured to: receiving a first touch operation input by a user on a first touch object, wherein the first touch object is a control element supporting a pressure recognition gesture and a long-press gesture; receiving a second touch operation input by the user on the first touch object;

a processing unit to: in response to the first touch operation, determining that a pressure value applied to the first touch object in the first touch operation meets a first preset condition within a first time threshold and reaches a pressure threshold for recognizing the pressure recognition gesture within a second time threshold, and instructing a display unit to display a first interface corresponding to the pressure recognition gesture; in response to the second touch operation, determining that a pressure value applied to the first touch object in the second touch operation meets the first preset condition within the first time threshold but does not reach the pressure threshold within the second time threshold, and instructing the display unit to display a second interface corresponding to the long-press gesture; the second time threshold is greater than the first time threshold, and the second time threshold is greater than a time threshold of the terminal for recognizing the long-press gesture;

the display unit is used for: displaying a first interface corresponding to the pressure recognition gesture; and displaying a second interface corresponding to the long-press gesture.

The terminal of claim 16,

the obtaining unit is further configured to: acquiring a pressure value and a touch duration applied to the first touch object;

the processing unit is further configured to: determining that the pressure value meets the first preset condition within the first time threshold, wherein the first time threshold is a time threshold for the terminal to recognize the long press gesture; and taking the second time threshold as a time threshold for identifying the long-press gesture.

The terminal of claim 17,

the terminal is pre-stored with a corresponding relationship between the second time threshold and the pressure value, and the processing unit is specifically configured to: according to the corresponding relation, taking a second time threshold corresponding to the pressure value as a time threshold for identifying the long pressing gesture; alternatively, the first and second electrodes may be,

the terminal is pre-stored with a functional relationship between the second time threshold and the pressure value, and the processing unit is specifically configured to: and substituting the pressure value into the functional relation to obtain a second time threshold, and taking the second time threshold as a time threshold for identifying the long pressing gesture.

The terminal according to claim 17 or 18,

the processing unit is further configured to: within the second time threshold, determining that the pressure value meets a second preset condition; and taking a third time threshold as a time threshold for identifying the long-press gesture, wherein the third time threshold is greater than the second time threshold.

The terminal of claim 19, wherein the second time threshold is a maximum time threshold for recognizing the long press gesture,

the processing unit is further configured to: the second time threshold is still used as a time threshold for recognizing the long press gesture.

A terminal, comprising:

an acquisition unit configured to: receiving a first touch operation input by a user on a second touch object, wherein the second touch object is a control element supporting an area change gesture and a long-press gesture; receiving a second touch operation input by the user on the second touch object;

a processing unit to: in response to the first touch operation, determining that a touch area applied to the second touch object in the first touch operation meets a first preset condition within a first time threshold and reaches an area threshold for recognizing the area change gesture within a second time threshold, and instructing a display unit to display a first interface corresponding to the area change gesture; in response to the second touch operation, determining that a touch area applied to the second touch object in the second touch operation satisfies the first preset condition within the first time threshold but does not reach the area threshold within the second time threshold, and instructing the display unit to display a second interface corresponding to the long-press gesture; the second time threshold is greater than the first time threshold, and the second time threshold is greater than a time threshold of the terminal for recognizing the long-press gesture;

the display unit is used for: displaying a first interface corresponding to the area change gesture; and displaying a second interface corresponding to the long-press gesture.

The terminal of claim 21,

the obtaining unit is further configured to: acquiring a touch area and a touch duration applied to the second touch object;

the processing unit is further configured to: determining that the touch area meets the first preset condition within the first time threshold, wherein the first time threshold is a time threshold for the terminal to recognize the long press gesture; and taking the second time threshold as a time threshold for identifying the long-press gesture.

The terminal of claim 22,

the terminal is pre-stored with a corresponding relationship between the second time threshold and the touch area, and the processing unit is specifically configured to: according to the corresponding relation, a second time threshold corresponding to the touch area is used as a time threshold for identifying the long pressing gesture; alternatively, the first and second electrodes may be,

the terminal is pre-stored with a functional relationship between the second time threshold and the touch area, and the processing unit is specifically configured to: and substituting the touch area into the functional relation to obtain a second time threshold, and using the second time threshold as a time threshold for identifying the long press gesture.

The terminal according to claim 22 or 23,

the processing unit is further configured to: determining that the touch area meets a second preset condition within the second time threshold; and taking a third time threshold as a time threshold for identifying the long-press gesture, wherein the third time threshold is greater than the second time threshold.

The terminal of claim 24, wherein the second time threshold is a maximum time threshold for recognizing the long press gesture,

the processing unit is further configured to: the second time threshold is still used as a time threshold for recognizing the long press gesture.

A terminal, comprising:

an acquisition unit configured to: receiving a first touch operation input by a user on a third touch object, wherein the third touch object is a control element supporting a pressure recognition gesture, an area change gesture and a long-press gesture; receiving a second touch operation input by the user on the third touch object;

a processing unit to: in response to the first touch operation, determining that a pressure value applied to the third touch object in the first touch operation firstly meets a preset condition within a first time threshold and reaches a pressure threshold for recognizing the pressure recognition gesture within a second time threshold, and instructing a display unit to display a first interface corresponding to the pressure recognition gesture; in response to the second touch operation, determining that a touch area applied to the third touch object in the second touch operation firstly meets a preset condition within the first time threshold and reaches an area threshold for recognizing the area change recognition gesture within the second time threshold, and instructing the display unit to display a second interface corresponding to the area change gesture; the second time threshold is greater than the first time threshold, and the second time threshold is greater than a time threshold of the terminal for recognizing the long-press gesture;

the display unit is used for: displaying a first interface corresponding to the pressure recognition gesture; displaying a second interface corresponding to the area change gesture.

The terminal of claim 26,

the obtaining unit is further configured to: acquiring a pressure value, a touch area and a touch duration applied to the third touch object;

the processing unit is further configured to: determining that the pressure value or the touch area firstly meets a preset condition within the first time threshold, wherein the first time threshold is a time threshold for the terminal to recognize the long press gesture; and taking the second time threshold as a time threshold for identifying the long-press gesture.

The terminal according to claim 26 or 27,

the obtaining unit is further configured to: receiving a third touch operation input by a user on the third touch object;

the processing unit is further configured to: responding to the three-touch operation, determining that neither a pressure value nor a touch area applied to the third touch object in the third touch operation meets the preset condition within the first time threshold, and indicating the display unit to display a third interface corresponding to the long-press gesture;

the display unit is further configured to: and displaying a third interface corresponding to the long-press gesture.

A terminal, comprising: a processor, a display, a memory, a bus and a communication interface;

the memory is used for storing computer-executable instructions, the processor is connected with the memory through the bus, and when the terminal runs, the processor executes the computer-executable instructions stored by the memory so as to enable the terminal to execute the touch method according to any one of claims 1-6, 7-12 or 13-15.

A chip, comprising: a processor and a memory;

the memory is used for storing computer-executable instructions, and the processor is connected with the memory, and when the chip runs, the processor executes the computer-executable instructions stored by the memory to enable the chip to execute the touch method according to any one of claims 1-6, 7-12 or 13-15.

A computer-readable storage medium having instructions stored therein, which when run on a terminal, cause the terminal to perform the touch method of any one of claims 1-6, 7-12, or 13-15.

A computer program product comprising instructions for causing a terminal to perform the touch method according to any one of claims 1-6, 7-12 or 13-15 when the computer program product is run on the terminal.

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于识别用户界面元素的技术以及使用其的系统和设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类