CN106814961A - A kind of operating method and terminal - Google Patents
A kind of operating method and terminal Download PDFInfo
- Publication number
- CN106814961A CN106814961A CN201510872678.3A CN201510872678A CN106814961A CN 106814961 A CN106814961 A CN 106814961A CN 201510872678 A CN201510872678 A CN 201510872678A CN 106814961 A CN106814961 A CN 106814961A
- Authority
- CN
- China
- Prior art keywords
- pressure
- pressing action
- gesture
- value
- pressing
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
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)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of operating method, a terminal is applied to, it is characterised in that methods described includes:After receiving push action, the corresponding pressure gesture of the push action is triggered;After triggering the pressure gesture, according to default pressure gesture and the corresponding relation of operational order, the corresponding operational order of the pressure gesture is obtained;Perform the operational order.The present invention also discloses a kind of terminal.
Description
Technical Field
The present invention relates to the field of terminal applications, and in particular, to an operating method and a terminal.
Background
At present, for most mobile terminals, a user can only execute an operation instruction through a touch screen of a touch screen, or feel an action or a gesture of the user through a traditional sensor, such as an acceleration sensor, a gyroscope, a light-sensing sensor, a proximity sensor, and the like. Therefore, the action of the user for operating the mobile terminal is single, and the operation experience is poor.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide an operation method and a terminal, which trigger a corresponding operation instruction through a pressure gesture, so that a user has a flexible and interesting operation experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an operation method, which is applied to a terminal, and the method includes: after a pressing action is received, triggering a pressure gesture corresponding to the pressing action; after the pressure gesture is triggered, acquiring an operation instruction corresponding to the pressure gesture according to a preset corresponding relation between the pressure gesture and the operation instruction; and executing the operation instruction.
In the foregoing solution, after receiving the pressing action and before triggering the pressure gesture corresponding to the pressing action, the method further includes: and presetting and storing the corresponding relation between the pressing action and the pressure gesture.
In the above solution, the presetting and saving a corresponding relationship between the pressing motion and the pressure gesture includes: presetting and storing a corresponding relation between a pressing action and a pressure gesture; wherein each pressure gesture correspondingly comprises at least one pressure threshold.
In the above scheme, after receiving the pressing action, triggering a pressure gesture corresponding to the pressing action includes: after the pressing action is received, sampling the pressing action through at least one sampling point to obtain a sampling value corresponding to each sampling point, and obtaining a pressure value corresponding to the position of the pressing action according to the position information of each sampling point and the corresponding sampling value; acquiring a pressure value corresponding to a pressing action position at least one sampling time point in preset time to form a pressure value set corresponding to the sampling time point; and determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points.
In the above scheme, determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points specifically includes: determining the trend of pressure change according to the pressure value sets corresponding to all the sampling time points; calculating a pressure difference value according to the trend of pressure change; and comparing the pressure difference value corresponding to the pressing action with the pressure threshold value correspondingly contained in the pressure gesture, and when each pressure difference value corresponding to the pressing action is greater than the pressure threshold value correspondingly contained in the pressure gesture, triggering the corresponding pressure gesture by the pressing action.
In a second aspect, an embodiment of the present invention provides a terminal, including: the device comprises a receiving unit, a triggering unit, an acquiring unit and an executing unit; the receiving unit is used for receiving a pressing action; the trigger unit is used for triggering a pressure gesture corresponding to the pressing action; the acquiring unit is used for acquiring an operation instruction corresponding to the pressure gesture according to a corresponding relation between a preset pressure gesture and the operation instruction; the execution unit is used for executing the operation instruction.
In the above aspect, the operating device further includes: a preset unit; the preset unit is used for presetting and storing the corresponding relation between the pressing action and the pressure gesture.
In the above scheme, the preset unit is specifically configured to preset and store a corresponding relationship between a pressing action and a pressure gesture; wherein each pressure gesture contains at least one pressure threshold.
In the above scheme, the trigger unit is specifically configured to sample the pressing action through at least one sampling point after receiving the pressing action, obtain a sampling value corresponding to each sampling point, and obtain a pressure value corresponding to the position of the pressing action according to the position information of each sampling point and the corresponding sampling value; acquiring a pressure value corresponding to a pressing action position at least one sampling time point in preset time to form a pressure value set corresponding to the sampling time point; and determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points.
In the above scheme, the triggering unit is specifically configured to determine a trend of pressure change according to a set of pressure values corresponding to all sampling time points; calculating a pressure difference value according to the trend of pressure change; and comparing the pressure difference value corresponding to the pressing action with the pressure threshold value correspondingly contained in the pressure gesture, and when each pressure difference value corresponding to the pressing action is greater than the pressure threshold value correspondingly contained in the pressure gesture, triggering the corresponding pressure gesture by the pressing action.
The embodiment of the invention provides an operation method and a terminal, and the operation method comprises the following steps of firstly, triggering a pressure gesture corresponding to a pressing action after receiving the pressing action; after the pressure gesture is triggered, acquiring an operation instruction corresponding to the pressure gesture according to a preset corresponding relation between the pressure gesture and the operation instruction; and finally, executing the operation instruction. Therefore, the user can trigger the operation instruction by pressing the Touch screen (TP, Touch Panel), convenience and rapidness are achieved, the user can have flexible and interesting operation experience on the terminal, and user experience is improved.
Drawings
FIG. 1 is a schematic flow chart of a method of operation in an embodiment of the present invention;
FIG. 2 is a graph illustrating a set of pressure values according to an embodiment of the present invention;
FIG. 3 is another schematic flow chart diagram of a method of operation in an embodiment of the present invention;
FIG. 4 is a schematic diagram of the positions of four sensors over TP in an embodiment of the present invention;
FIG. 5 is a graphical illustration of another set of pressure values in an embodiment of the present invention;
FIG. 6 is a schematic flow chart of the operation of the method of the embodiment of the present invention;
FIG. 7 is a schematic flow chart of another embodiment of the method of the present invention;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 9 is another schematic structural diagram of a terminal in the embodiment of the present invention.
Detailed Description
The technical solution 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.
Example one
Referring to fig. 1, there is shown an operating method provided by an embodiment of the present invention, which may include:
s101: after the pressing action is received, triggering a pressure gesture corresponding to the pressing action;
it is understood that the pressing action received by the terminal may be realized by the user by pressing the TP.
In a specific implementation process, before the terminal receives the pressing action, the corresponding relation between the pressing action and the pressure gesture needs to be preset and stored; therefore, when a user presses the TP, the corresponding pressure gesture can be triggered according to the preset pressing action.
It should be noted that, in the experimental process, it is found that the change of the pressure value of the human hand under different pressing actions is regular, for example, when the finger presses TP, the pressing action of two times of pressing is performed: when pressing- > pressing heavily- > pressing lightly- > pressing heavily- > pressing, according to the pressure values detected periodically, it can be known that the corresponding pressure value changes from small to large to small in a curve every time the finger is pressed from lightly to heavily and then lightly. The pressure curve is shown in fig. 2, wherein the X-axis represents time and the Y-axis represents pressure. Therefore, according to the change rule of the pressure value during two times of pressing in fig. 2, a pressure gesture of double pressing can be correspondingly set, and when the TP receives the pressing action of two times of pressing, the corresponding pressure gesture of double pressing can be triggered.
In implementations, each pressure gesture includes at least one pressure threshold.
For example, after receiving the pressing motion, triggering a pressure gesture corresponding to the pressing motion may specifically include S1011 to S1013:
s1011: after the pressing action is received, sampling the pressing action through at least one sampling point to obtain a sampling value corresponding to each sampling point, and obtaining a pressure value corresponding to the position of the pressing action according to the position information of each sampling point and the corresponding sampling value;
s1012: acquiring a pressure value corresponding to a pressing action position at least one sampling time point in preset time to form a pressure value set corresponding to the sampling time point;
s1013: and determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points.
Exemplarily, determining whether to trigger the pressure gesture according to the pressure value sets corresponding to all the sampling time points may specifically include S10131 to S10133:
s10131: determining the trend of pressure change according to the pressure value sets corresponding to all the sampling time points;
specifically, pressure values corresponding to two adjacent sampling time points are obtained, and the pressure value corresponding to the previous sampling time point is subtracted from the pressure value corresponding to the next sampling time point; when the difference value obtained by subtracting the two pressure values is a negative value, the trend of the pressure change at the moment is from heavy to light; on the contrary, when the difference value obtained by subtracting the two pressure values is a positive value, the trend of the pressure change at the time is shown as from light to heavy; from this, the trend of the pressure change in the preset time can be determined.
S10132: calculating a pressure difference value according to the trend of pressure change;
and when the trend of pressure change is from heavy to light, taking the pressure value corresponding to the first sampling time point and the pressure value corresponding to the last sampling time point in the period of time, calculating the pressure difference value between the two pressure values, and recording the pressure difference value as a first pressure difference value.
And when the pressure change trend is from light to heavy, taking the pressure value corresponding to the first sampling time point and the pressure value corresponding to the last sampling time point in the period of time, calculating the pressure difference value between the two pressure values, and recording the pressure difference value as a second pressure difference value.
In a specific implementation process, at least one pressure difference value can be recorded according to the pressure change trend of the pressing action and the duration of the preset time.
For example, for the pressing action of two times of pressing, two pressure differences may be taken, specifically, two first pressure differences, two second pressure differences, or one first pressure difference and one second pressure difference; of course, three pressure differences may be adopted for the pressing action of the two times of pressing, specifically, two first pressure differences and one second pressure difference, or two second pressure differences and one first pressure difference; similarly, for the pressing action of two times of pressing, four pressure difference values may also be taken, specifically, two first pressure difference values and two second pressure difference values.
The number of pressure difference values corresponding to one pressing operation can be arbitrarily determined according to specific situations.
S10133: and comparing the pressure difference value corresponding to the pressing action with the pressure threshold value correspondingly contained in the pressure gesture, and triggering the corresponding pressure gesture by the pressing action when each pressure difference value corresponding to the pressing action is greater than the pressure threshold value correspondingly contained in the pressure gesture.
In a specific implementation process, the number of pressure thresholds included in the pressure gesture may be set according to the number of pressure differences corresponding to the pressing motion, and the number of pressure thresholds included in the pressure gesture needs to correspond to the number of pressure differences corresponding to the pressing motion.
For example, it can be known from S10132 that two presses correspond to two pressure difference values, and when two pressure difference values corresponding to two presses are a first pressure difference value and a second pressure difference value, the pressure thresholds corresponding to the pressure gesture of the double press may also be set as two: a first pressure threshold from heavy to light and a second pressure threshold from light to heavy. After two pressure difference values corresponding to two times of pressing are obtained, the two pressure difference values are compared with two pressure threshold values correspondingly contained in the double pressing: when the first pressure difference value is greater than the corresponding first pressure threshold value and the second pressure difference value is also greater than the corresponding second pressure threshold value, the double pressing is triggered by the two pressing actions; of course, the dual pressing may also include a pressure threshold, and after obtaining two pressure differences corresponding to the two times of pressing, both the two pressure differences corresponding to the two times of pressing are compared with the same pressure threshold: when the first pressure difference value and the second pressure difference value are both larger than the pressure threshold value, the pressing motion of the two times of pressing triggers a pressure gesture of double pressing.
For another example, the pressure thresholds included in the pressure gesture of the triple press are set as three first pressure thresholds, and correspondingly, three pressure differences corresponding to the press motions of the three presses need to be obtained, which may specifically be three first pressure differences; then, the three first pressure difference values are respectively compared with three first pressure thresholds correspondingly contained in triple pressing: when the pressure difference value in the three first pressure difference values is respectively greater than three first pressure threshold values correspondingly contained in the triple pressing, the pressing action of the triple pressing triggers the pressure gesture of the triple pressing.
S102: after the pressure gesture is triggered, acquiring an operation instruction corresponding to the pressure gesture according to a preset corresponding relation between the pressure gesture and the operation instruction;
it should be noted that the pressure gesture and the preset operation instruction may be in a one-to-one, or many-to-one, or one-to-many relationship; for example, the operation instruction corresponding to the double-press is a screen capture, the operation instructions corresponding to the double-press and the triple-press can be set as screen captures, and the operation instruction corresponding to the double-press can be set as an operation instruction for turning on a screen and turning on a flashlight; the operation instruction corresponding to the pressure gesture may include, but is not limited to, power on, power off, screen locking, unlocking, screen capturing, flashlight turning on, flashlight turning off, camera turning on, and the like.
S103: and executing the operation instruction.
In a specific implementation process, after the corresponding operation instruction is obtained according to the pressure gesture, the operation instruction corresponding to the pressure gesture is executed. For example, when it is determined that the pressing motion of the double pressing is a pressure gesture of double pressing, the screen locking operation corresponding to the pressure gesture of double pressing is performed.
In addition, under the condition that the terminal state is normal, the interfaces for triggering the pressure gesture and executing the operation instruction corresponding to the pressure gesture are not limited, that is, the operation instruction corresponding to the pressure gesture can be acquired and executed according to the pressure gesture under any condition.
The above scheme is described below by using a specific example, as shown in fig. 3, the specific steps include:
s301: pressing TP by a user, and executing the pressing action of pressing twice;
it should be noted that, before the user presses the TP, the correspondence between the pressing motion of the two presses and the pressure gesture of the double press needs to be preset and stored; and the pressure gesture of the double pressing correspondingly comprises two second pressure thresholds.
S302: the terminal acquires four sampling values through the four sampling points, and calculates a pressure value corresponding to the pressure action position of the two-time pressing by combining the position information of the four sampling points;
the distribution of the positions of the four sampling points at TP is shown in fig. 4, in which the white square is TP and the four black dots are four sampling points respectively.
S303: within preset time 220ms, the terminal acquires pressure values corresponding to the pressure actions of two times of pressing every 10ms, and 22 pressure values acquired within 220ms are recorded as a pressure value set corresponding to the pressure actions of two times of pressing; wherein, the pressure value curve is shown in fig. 5, in which P1-P22 are the positions marked with 22 pressure values on the pressure curve;
s304: the terminal acquires two pressure difference values corresponding to the pressing actions of the two times of pressing according to the pressure value set corresponding to the pressing actions of the two times of pressing, specifically two second pressure difference values;
s3041: acquiring a pressure value P1 corresponding to the first sampling time point and a pressure value P2 corresponding to the second sampling time point, subtracting P1 from P2 to obtain a pressure difference value which is a positive value, wherein the slope of a curve of pressure change at the moment is a positive value, and the trend of the pressure change is from light to heavy;
s3042: processing S3041 on pressure values corresponding to subsequent sampling time points, sequentially subtracting the pressure value corresponding to the previous sampling time point from the pressure value corresponding to the next sampling time point, calculating pressure difference values corresponding to two adjacent sampling time points, and determining the trend of pressure change according to the positive and negative conditions of the pressure difference values;
s3043: according to the calculation result, the pressure value P5 corresponding to the fifth sampling time point is subtracted from the pressure value P6 corresponding to the sixth sampling time point, and the obtained pressure difference value is a negative value, which indicates that the slope of the pressure change curve is a negative value at the moment, and the trend of the pressure change is changed from light to heavy to light; subtracting the pressure value P12 corresponding to the twelfth sampling time point from the pressure value P13 corresponding to the thirteenth sampling time point to obtain a pressure difference value which is a positive value, and indicating that the pressure change trend is changed from heavy to light; subtracting a pressure value P17 corresponding to the seventeenth sampling time point from a pressure value P18 corresponding to the eighteenth sampling time point to obtain a negative pressure difference value, which indicates that the pressure change trend is changed from light to heavy to light; subtracting the pressure value P20 corresponding to the twentieth sampling time point from the pressure value P21 corresponding to the twenty-first sampling time point to obtain a negative pressure difference value, which indicates that the pressure change trend is changed from heavy to light;
s3044: the Pressure change trend from light to heavy for the first time corresponds to the first sampling time point to the fifth sampling time point, a Pressure value P1 corresponding to the first sampling time point and a Pressure value P5 corresponding to the fifth sampling time point are taken, the Pressure difference between P1 and P5 is calculated, and the Pressure difference is recorded as a first second Pressure difference value Pressure1 which is P5-P1;
s3045: the Pressure variation trend from light to heavy for the second time corresponds to a twelfth sampling time point to a seventeenth sampling time point, a Pressure value P12 corresponding to the twelfth sampling time point and a Pressure value P17 corresponding to the seventeenth sampling time point are taken, a Pressure difference value between the two Pressure values is calculated, and the Pressure difference value is recorded as a second Pressure difference value Pressure2 which is P17-P12;
s305: the terminal compares two pressure difference values corresponding to the pressing actions of the two times of pressing with two pressure thresholds correspondingly contained in the pressure gestures of the double pressing, and determines whether the pressing actions of the two times of pressing trigger the pressure gestures of the double pressing;
specifically, the two second Pressure difference values are compared with the two second Pressure thresholds respectively, and when the first second Pressure difference value Pressure1 is greater than the first second Pressure threshold and the second Pressure difference value Pressure2 is greater than the second Pressure threshold, it is determined that the pressing motion of the two presses can trigger the Pressure gesture of the double press.
S306: the terminal determines an operation instruction corresponding to the double-pressing pressure gesture as screen capturing operation according to a preset corresponding relation between the double-pressing pressure gesture and the screen capturing operation;
s307: the mobile terminal performs a screen capture operation.
Still taking the pressure gesture of triggering double pressing by the pressing action of the second pressing as an example, on the basis of the previous example, the foregoing solution is described by another specific example, as shown in fig. 6, the specific steps include:
s601: pressing TP by a user, and executing the pressing action of pressing twice;
it should be noted that, before the user presses the TP, the correspondence between the pressing motion of the two presses and the pressure gesture of the double press needs to be preset and stored; the pressure gesture of the double pressing correspondingly comprises a first pressure threshold;
s602: the terminal acquires four sampling values through the four sampling points, and calculates a pressure value corresponding to the pressure action position of the two-time pressing by combining the position information of the four sampling points;
the distribution of the positions of the four sampling points at TP is shown in fig. 4, in which the white square is TP and the four black dots are four sampling points respectively.
S603: within preset time 220ms, the terminal acquires pressure values corresponding to the pressure actions of two times of pressing every 10ms, and 22 pressure values acquired within 220ms are recorded as a pressure value set corresponding to the pressure actions of two times of pressing; wherein, the pressure value curve is shown in fig. 5, in which P1-P22 are the positions marked with 22 pressure values on the pressure curve;
s604: the terminal acquires two pressure difference values corresponding to the pressing actions of the two times of pressing according to the pressure value set corresponding to the pressing actions of the two times of pressing, specifically two first pressure difference values;
s6041: acquiring a pressure value P1 corresponding to the first sampling time point and a pressure value P2 corresponding to the second sampling time point, subtracting P1 from P2 to obtain a pressure difference value which is a positive value, wherein the slope of a curve of pressure change at the moment is a positive value, and the trend of the pressure change is from light to heavy;
s6042: processing S3041 on pressure values corresponding to subsequent sampling time points, sequentially subtracting the pressure value corresponding to the previous sampling time point from the pressure value corresponding to the next sampling time point, calculating pressure difference values corresponding to two adjacent sampling time points, and determining the trend of pressure change according to the positive and negative conditions of the pressure difference values;
s6043: according to the calculation result, the pressure value P5 corresponding to the fifth sampling time point is subtracted from the pressure value P6 corresponding to the sixth sampling time point, and the obtained pressure difference value is a negative value, which indicates that the slope of the pressure change curve is a negative value at the moment, and the trend of the pressure change is changed from light to heavy to light; subtracting the pressure value P12 corresponding to the twelfth sampling time point from the pressure value P13 corresponding to the thirteenth sampling time point to obtain a pressure difference value which is a positive value, and indicating that the pressure change trend is changed from heavy to light; subtracting a pressure value P17 corresponding to the seventeenth sampling time point from a pressure value P18 corresponding to the eighteenth sampling time point to obtain a negative pressure difference value, which indicates that the pressure change trend is changed from light to heavy to light; subtracting the pressure value P20 corresponding to the twentieth sampling time point from the pressure value P21 corresponding to the twenty-first sampling time point to obtain a negative pressure difference value, which indicates that the pressure change trend is changed from heavy to light;
s6044: the Pressure change trend from heavy to light for the first time corresponds to a fifth sampling time point to a twelfth sampling time point, a Pressure value P5 corresponding to the fifth sampling time point and a Pressure value P12 corresponding to the twelfth sampling time point are taken, a Pressure difference value between P5 and P12 is calculated, and the Pressure difference value is recorded as a first Pressure difference value Pressure1', namely P5-P12;
s6045: the Pressure change trend from the heavy to the light for the second time corresponds to a seventeenth sampling time point to a twentieth sampling time point, a Pressure value P17 corresponding to the seventeenth sampling time point and a Pressure value P20 corresponding to the twentieth sampling time point are taken, a Pressure difference value between P17 and P20 is calculated, and the Pressure difference value is recorded as a second first Pressure difference value Pressure2' ═ P17-P20;
s605: the terminal compares two pressure difference values corresponding to the pressing actions of the two times of pressing with a pressure threshold value correspondingly contained in the pressure gesture of the double pressing to determine whether the pressing actions of the two times of pressing trigger the pressure gesture of the double pressing;
specifically, when the two first Pressure difference values are respectively compared with the first Pressure threshold value, and the first Pressure difference value Pressure1 'is greater than the first Pressure threshold value, and the second first Pressure difference value Pressure2' is also greater than the first Pressure threshold value, it is determined that the pressing motion of the two-press can trigger the Pressure gesture of the double-press;
s606: the terminal determines an operation instruction corresponding to the double-pressing pressure gesture as a screen locking operation according to a preset corresponding relation between the double-pressing pressure gesture and the screen locking operation;
s607: and the mobile terminal executes screen locking operation.
Still taking the pressure gesture of triggering double pressing by pressing action of two times as an example, on the basis of the previous example, the above-mentioned scheme is further described by using a specific example, as shown in fig. 7, the specific steps include:
s701: pressing TP by a user, and executing the pressing action of pressing twice;
it should be noted that, before the user presses the TP, the correspondence between the pressing motion of the two presses and the pressure gesture of the double press needs to be preset and stored; the double-press pressure gesture correspondingly comprises four pressure thresholds, specifically two first pressure thresholds and two second pressure thresholds.
S702: the terminal acquires four sampling values through the four sampling points, and calculates a pressure value corresponding to the pressure action position of the two-time pressing by combining the position information of the four sampling points;
the distribution of the positions of the four sampling points at TP is shown in fig. 4, in which the white square is TP and the four black dots are four sampling points respectively.
S703: within preset time 220ms, the terminal acquires pressure values corresponding to the pressure actions of two times of pressing every 10ms, and records all the pressure values acquired within 220ms as a pressure value set corresponding to the pressure actions of two times of pressing; wherein, the pressure value curve is shown in fig. 5, in which P1-P22 are the positions marked with 22 pressure values on the pressure curve;
s704: the terminal acquires four pressure difference values corresponding to the pressing actions of the two times of pressing according to the pressure value set corresponding to the pressing actions of the two times of pressing, specifically two first pressure difference values and two second pressure difference values;
s7041: acquiring a pressure value P1 corresponding to the first sampling time point and a pressure value P2 corresponding to the second sampling time point, subtracting P1 from P2 to obtain a pressure difference value which is a positive value, wherein the slope of a curve of pressure change at the moment is a positive value, and the trend of the pressure change is from light to heavy;
s7042: processing S3041 on pressure values corresponding to subsequent sampling time points, sequentially subtracting the pressure value corresponding to the previous sampling time point from the pressure value corresponding to the next sampling time point, calculating pressure difference values corresponding to two adjacent sampling time points, and determining the trend of pressure change according to the positive and negative conditions of the pressure difference values;
s7043: according to the calculation result, the pressure value P5 corresponding to the fifth sampling time point is subtracted from the pressure value P6 corresponding to the sixth sampling time point, and the obtained pressure difference value is a negative value, which indicates that the slope of the pressure change curve is a negative value at the moment, and the trend of the pressure change is changed from light to heavy to light; subtracting the pressure value P12 corresponding to the twelfth sampling time point from the pressure value P13 corresponding to the thirteenth sampling time point to obtain a pressure difference value which is a positive value, and indicating that the pressure change trend is changed from heavy to light; subtracting a pressure value P17 corresponding to the seventeenth sampling time point from a pressure value P18 corresponding to the eighteenth sampling time point to obtain a negative pressure difference value, which indicates that the pressure change trend is changed from light to heavy to light; subtracting the pressure value P20 corresponding to the twentieth sampling time point from the pressure value P21 corresponding to the twenty-first sampling time point to obtain a negative pressure difference value, which indicates that the pressure change trend is changed from heavy to light;
s7044: the Pressure change trend from light to heavy for the first time corresponds to the first sampling time point to the fifth sampling time point, a Pressure value P1 corresponding to the first sampling time point and a Pressure value P5 corresponding to the fifth sampling time point are taken, the Pressure difference between P1 and P5 is calculated, and the Pressure difference is recorded as a first second Pressure difference value Pressure1 ″ -P5-P1;
s7045: the Pressure change trend from heavy to light for the first time corresponds to a fifth sampling time point to a twelfth sampling time point, a Pressure value P5 corresponding to the fifth sampling time point and a Pressure value P12 corresponding to the twelfth sampling time point are taken, a Pressure difference value between P5 and P12 is calculated, and the Pressure difference value is taken as a first Pressure difference value Pressure2 ″, namely P5-P12;
s7046: the Pressure variation trend from light to heavy for the second time corresponds to a twelfth sampling time point to a seventeenth sampling time point, a Pressure value P12 corresponding to the twelfth sampling time point and a Pressure value P17 corresponding to the seventeenth sampling time point are taken, a Pressure difference value between the two Pressure values is calculated, and the Pressure difference value is recorded as a second Pressure difference value Pressure3 ″ -P17-P12;
s7047: the Pressure change trend from heavy to light for the second time corresponds to a seventeenth sampling time point to a twentieth sampling time point, a Pressure value P17 corresponding to the seventeenth sampling time point and a Pressure value P20 corresponding to the twentieth sampling time point are taken, a Pressure difference value between P17 and P20 is calculated, and the Pressure difference value is recorded as a second first Pressure difference value Pressure4 ″ -P17-P20;
s705: the terminal compares four pressure difference values corresponding to the pressing actions of the two times of pressing with four pressure thresholds correspondingly contained in the pressure gestures of the double pressing, and determines whether the pressing actions of the two times of pressing trigger the pressure gestures of the double pressing;
specifically, comparing the first second Pressure difference value with a first Pressure threshold, the second Pressure difference value with a second Pressure threshold, and the second first Pressure difference value with the second first Pressure threshold, when the first second Pressure difference value Pressure1 "is greater than the first second Pressure threshold, and the first Pressure difference value Pressure 2" is greater than the first Pressure threshold, and the second Pressure difference value Pressure3 "is greater than the second Pressure threshold, and the second first Pressure difference value Pressure 4" is greater than the second first Pressure threshold, respectively, it is determined that the pressing motion of the two presses can trigger a double-pressing Pressure gesture;
s706: the terminal determines that an operation instruction corresponding to the double-pressing pressure gesture is an operation of turning on the flashlight according to a preset corresponding relation between the double-pressing pressure gesture and the operation of turning on the flashlight;
s707: the mobile terminal performs an operation of turning on the flashlight.
It should be noted that the sampling points are distributed on four edge corners of the mobile terminal, and in addition, the number and the positions of the sampling points can be set according to actual requirements.
Example two
Based on the same technical concept as the above-mentioned embodiment, referring to fig. 8, it shows a terminal 80 provided by the embodiment of the present invention, where the terminal 80 includes: a receiving unit 801, a triggering unit 802, an obtaining unit 803, and an executing unit 804; wherein,
the receiving unit 801 is used for receiving a pressing action;
the triggering unit 802 is configured to trigger a pressure gesture corresponding to the pressing action;
the obtaining unit 803 is configured to obtain an operation instruction corresponding to a pressure gesture according to a corresponding relationship between the preset pressure gesture and the operation instruction;
the execution unit 804 is configured to execute the operation instruction.
In the above solution, as shown in fig. 7, the terminal 90 further includes: the preset unit 901 is configured to preset and store a corresponding relationship between the pressing motion and the pressure gesture.
In the above scheme, the presetting unit 901 is specifically configured to preset and store a corresponding relationship between a pressing motion and a pressure gesture; wherein each pressure gesture contains at least one pressure threshold.
In the above scheme, the triggering unit 802 is specifically configured to, after receiving the pressing action, sample the pressing action through at least one sampling point to obtain a sampling value corresponding to each sampling point, and obtain a pressure value corresponding to each sampling point at the pressing action position according to the position information of each sampling point and the corresponding sampling value; acquiring a pressure value corresponding to each sampling point at a pressing action position at least one sampling time point in preset time to form a pressure value set corresponding to the sampling time point; and determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points.
In the above scheme, the triggering unit 802 is specifically configured to determine a trend of pressure change according to a set of pressure values corresponding to all sampling time points; calculating a pressure difference value according to the trend of pressure change; and comparing the pressure difference value corresponding to the pressing action with the pressure threshold value correspondingly contained in the pressure gesture, and when each pressure difference value corresponding to the pressing action is greater than the pressure threshold value correspondingly contained in the pressure gesture, triggering the corresponding pressure gesture by the pressing action.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (10)
1. An operating method applied to a terminal, the method comprising:
after a pressing action is received, triggering a pressure gesture corresponding to the pressing action;
after the pressure gesture is triggered, acquiring an operation instruction corresponding to the pressure gesture according to a preset corresponding relation between the pressure gesture and the operation instruction;
and executing the operation instruction.
2. The method according to claim 1, wherein after receiving the pressing action and before triggering a pressure gesture corresponding to the pressing action, the method further comprises:
and presetting and storing the corresponding relation between the pressing action and the pressure gesture.
3. The method according to claim 2, wherein presetting and saving the corresponding relation between the pressing action and the pressure gesture comprises:
presetting and storing a corresponding relation between a pressing action and a pressure gesture; wherein each pressure gesture correspondingly comprises at least one pressure threshold.
4. The method according to claim 1, wherein after receiving the pressing action, triggering a pressure gesture corresponding to the pressing action comprises:
after the pressing action is received, sampling the pressing action through at least one sampling point to obtain a sampling value corresponding to each sampling point, and obtaining a pressure value corresponding to the position of the pressing action according to the position information of each sampling point and the corresponding sampling value;
acquiring a pressure value corresponding to a pressing action position at least one sampling time point in preset time to form a pressure value set corresponding to the sampling time point;
and determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points.
5. The method according to claim 4, wherein determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points specifically includes:
determining the trend of pressure change according to the pressure value sets corresponding to all the sampling time points;
calculating a pressure difference value according to the trend of pressure change;
and comparing the pressure difference value corresponding to the pressing action with the pressure threshold value correspondingly contained in the pressure gesture, and when each pressure difference value corresponding to the pressing action is greater than the pressure threshold value correspondingly contained in the pressure gesture, triggering the corresponding pressure gesture by the pressing action.
6. A terminal, comprising: the device comprises a receiving unit, a triggering unit, an acquiring unit and an executing unit; wherein,
the receiving unit is used for receiving a pressing action;
the trigger unit is used for triggering a pressure gesture corresponding to the pressing action;
the acquiring unit is used for acquiring an operation instruction corresponding to the pressure gesture according to a corresponding relation between a preset pressure gesture and the operation instruction;
the execution unit is used for executing the operation instruction.
7. The operating device according to claim 6, characterized in that the operating device further comprises: a preset unit; wherein,
the preset unit is used for presetting and storing the corresponding relation between the pressing action and the pressure gesture.
8. Operating device according to claim 7, characterised in that the preset unit, in particular for
Presetting and storing a corresponding relation between a pressing action and a pressure gesture; wherein each pressure gesture contains at least one pressure threshold.
9. Operating device according to claim 6, characterised in that the triggering unit is, in particular, intended for
After the pressing action is received, sampling the pressing action through at least one sampling point to obtain a sampling value corresponding to each sampling point, and obtaining a pressure value corresponding to the position of the pressing action according to the position information of each sampling point and the corresponding sampling value;
acquiring a pressure value corresponding to a pressing action position at least one sampling time point in preset time to form a pressure value set corresponding to the sampling time point;
and determining whether to trigger a pressure gesture corresponding to the pressing action according to the pressure value sets corresponding to all the sampling time points.
10. Operating device according to claim 9, characterised in that the triggering unit is, in particular, intended for
Determining the trend of pressure change according to the pressure value sets corresponding to all the sampling time points;
calculating a pressure difference value according to the trend of pressure change;
and comparing the pressure difference value corresponding to the pressing action with the pressure threshold value correspondingly contained in the pressure gesture, and when each pressure difference value corresponding to the pressing action is greater than the pressure threshold value correspondingly contained in the pressure gesture, triggering the corresponding pressure gesture by the pressing action.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510872678.3A CN106814961A (en) | 2015-12-02 | 2015-12-02 | A kind of operating method and terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510872678.3A CN106814961A (en) | 2015-12-02 | 2015-12-02 | A kind of operating method and terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106814961A true CN106814961A (en) | 2017-06-09 |
Family
ID=59107601
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510872678.3A Pending CN106814961A (en) | 2015-12-02 | 2015-12-02 | A kind of operating method and terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106814961A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107678659A (en) * | 2017-08-15 | 2018-02-09 | 深圳天珑无线科技有限公司 | A kind of intelligent terminal and its control method and the device with store function |
| CN108537035A (en) * | 2018-01-02 | 2018-09-14 | 京东方科技集团股份有限公司 | A kind of unlocking method and touch screen terminal |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102262510A (en) * | 2011-09-01 | 2011-11-30 | 珠海全志科技股份有限公司 | Device and method for amplifying display contents by using gestures |
| US20130024778A1 (en) * | 2011-07-13 | 2013-01-24 | Z124 | Dynamic cross-environment application configuration/orientation |
| CN103135818A (en) * | 2011-11-28 | 2013-06-05 | 联想(北京)有限公司 | Quick response operation method and electronic equipment |
| CN103376980A (en) * | 2012-04-17 | 2013-10-30 | 百度在线网络技术(北京)有限公司 | Mobile terminal and method for unlocking screen thereof |
| CN103562828A (en) * | 2011-06-01 | 2014-02-05 | 摩托罗拉移动有限责任公司 | Use pressure differential in conjunction with touch-sensitive display screens |
| CN104020868A (en) * | 2013-02-28 | 2014-09-03 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN105022561A (en) * | 2014-04-30 | 2015-11-04 | 中国电信股份有限公司 | Touch screen control apparatus and method and mobile terminal |
| CN105100468A (en) * | 2015-07-17 | 2015-11-25 | 努比亚技术有限公司 | Operating method and apparatus for mobile terminal |
-
2015
- 2015-12-02 CN CN201510872678.3A patent/CN106814961A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103562828A (en) * | 2011-06-01 | 2014-02-05 | 摩托罗拉移动有限责任公司 | Use pressure differential in conjunction with touch-sensitive display screens |
| US20130024778A1 (en) * | 2011-07-13 | 2013-01-24 | Z124 | Dynamic cross-environment application configuration/orientation |
| CN102262510A (en) * | 2011-09-01 | 2011-11-30 | 珠海全志科技股份有限公司 | Device and method for amplifying display contents by using gestures |
| CN103135818A (en) * | 2011-11-28 | 2013-06-05 | 联想(北京)有限公司 | Quick response operation method and electronic equipment |
| CN103376980A (en) * | 2012-04-17 | 2013-10-30 | 百度在线网络技术(北京)有限公司 | Mobile terminal and method for unlocking screen thereof |
| CN104020868A (en) * | 2013-02-28 | 2014-09-03 | 联想(北京)有限公司 | Information processing method and electronic equipment |
| CN105022561A (en) * | 2014-04-30 | 2015-11-04 | 中国电信股份有限公司 | Touch screen control apparatus and method and mobile terminal |
| CN105100468A (en) * | 2015-07-17 | 2015-11-25 | 努比亚技术有限公司 | Operating method and apparatus for mobile terminal |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107678659A (en) * | 2017-08-15 | 2018-02-09 | 深圳天珑无线科技有限公司 | A kind of intelligent terminal and its control method and the device with store function |
| CN108537035A (en) * | 2018-01-02 | 2018-09-14 | 京东方科技集团股份有限公司 | A kind of unlocking method and touch screen terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12102904B2 (en) | Game control method based on a smart bracelet, smart bracelet and storage medium | |
| US9696767B2 (en) | Command recognition method including determining a hold gesture and electronic device using the method | |
| US20150007069A1 (en) | Electronic device capable of reconfiguring displayed icons and method thereof | |
| CN103268184A (en) | Method and device for moving text cursor | |
| US20140141833A1 (en) | Information processing method, system and mobile terminal | |
| CN103257812B (en) | A kind of method adjusting display output and electronic equipment | |
| CN105045411A (en) | Object control method and terminal | |
| US20120262405A1 (en) | Method and mobile terminal for processing touch input | |
| KR20130134508A (en) | Unlocking method using touch-screen and electric device thereof | |
| CN105487809A (en) | Terminal control method and device | |
| CN102662554A (en) | Information processing apparatus and code input mode switching method thereof | |
| TW201528061A (en) | System and method for managing dial pad of an electronic device | |
| JP2016053940A (en) | Touch imaging method and touch terminal thereof | |
| CN104572071A (en) | Terminal | |
| EP3089015A1 (en) | Processing method for touch signal and terminal device | |
| KR20160037901A (en) | Method and device for displaying objects | |
| CN105607838A (en) | Information processing method and device as well as electronic equipment | |
| CN105843523B (en) | Information processing method and device | |
| CN106814961A (en) | A kind of operating method and terminal | |
| CN105808129B (en) | Method and device for quickly starting software function by using gesture | |
| CN104866210B (en) | A kind of touch screen control method, device and electronic equipment | |
| JPWO2012111227A1 (en) | Touch-type input device, electronic apparatus, and input method | |
| EP3438809A1 (en) | Control instruction identification method and apparatus, and storage medium | |
| CN113656131A (en) | Remote control method, device, electronic device and storage medium | |
| CN108710477A (en) | Display methods, mobile terminal and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170609 |
|
| RJ01 | Rejection of invention patent application after publication |