Control method and electronic equipmentTechnical Field
The invention relates to a touch technology, in particular to a control method and electronic equipment.
Background
With the development of electronic technology and touch screen technology, electronic devices with touch screens, such as mobile phones, tablet computers, notebook computers, televisions, etc., have been widely used in the work and life of people. Generally, electronic devices have function keys such as a Menu (Menu) key, a desktop (Home) key, a Back (Back) key, a power key, and a volume key, where the function keys are usually disposed below a touch display screen of the electronic device, each function key corresponds to an icon for representing the function key, and the function of the corresponding function key can be implemented by the electronic device by correspondingly clicking the corresponding icon. However, the function of the corresponding function key can be realized only when the user clicks the area corresponding to the corresponding function key.
Therefore, how to make the user call or activate the function keys more quickly and conveniently is still a technical problem for those skilled in the art.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a control method and an electronic device, which can call various function keys more easily and more quickly, and are not limited to a certain fixed area, so as to improve the user experience.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
preferably, the present invention provides a control method applied to an electronic device, where the electronic device includes a touch area, and the method includes:
when a first operation on a plane where the touch area is located is detected, whether a first pressure value of the first operation is larger than or equal to a first threshold value is judged, and if yes, the electronic equipment is controlled to enter a first mode; the first pressure value is a value of a force of the first operation in a direction perpendicular to the plane where the touch area is located;
in the first mode, receiving a second operation, the second operation being a continuous operation of the first operation;
acquiring first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation;
obtaining a first matching result based on the first data information according to a preset strategy;
and executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result.
Preferably, before the obtaining of the first data information corresponding to the second operation, the method further includes:
when receiving a second operation, acquiring a second pressure value of the second operation; the second pressure value is a force value of the second operation in the direction perpendicular to the plane where the touch area is located;
and judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode.
Preferably, the executing the operation corresponding to the corresponding function key of the electronic device according to the first matching result includes:
displaying a display interface related to the function key according to the first matching result;
and after receiving a starting instruction on the display interface, starting a function key of the electronic equipment according to the starting instruction so as to enable the electronic equipment to execute the operation corresponding to the function key.
Preferably, the preset policy includes:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Preferably, the obtaining a first matching result according to a preset policy and based on the first data information, and executing an operation corresponding to a corresponding function key of the electronic device according to the first matching result includes:
determining a first displacement formed on the touch area by the second operation according to a preset strategy and based on the first data information, and generating a first parameter value according to a value of the first displacement;
and adjusting the parameter value of the function key according to the first parameter value so as to adjust the parameter value of the function key to be the same as the first parameter value.
The present invention also provides an electronic device, where the electronic device includes a touch area, and the electronic device further includes:
the judging unit is used for judging whether a first pressure value of the first operation is larger than or equal to a first threshold value or not when the first operation on the plane where the touch area is located is detected, and controlling the electronic equipment to enter a first mode if the first pressure value of the first operation is larger than or equal to the first threshold value; the first pressure value is a value of a force of the first operation in a direction perpendicular to the plane where the touch area is located;
a receiving unit configured to receive a second operation in the first mode; the second operation is a continuous operation of the first operation;
a first obtaining unit, configured to obtain first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation;
the determining unit is used for obtaining a first matching result according to a preset strategy and based on the first data information;
and the processing unit is used for executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result.
Preferably, the electronic device further includes:
the second obtaining unit is used for obtaining a second pressure value of a second operation when the second operation is received; the second pressure value is a force value of the second operation in the direction perpendicular to the plane where the touch area is located;
the control unit is used for judging whether the second pressure value is larger than or equal to a first threshold value or not, and if so, informing the first acquisition unit to acquire first data information corresponding to the second operation; otherwise, controlling the electronic equipment to exit the first mode.
Preferably, the processing unit includes:
the display module is used for displaying a display interface related to the function key according to the first matching result;
and the starting module is used for starting the function keys of the electronic equipment according to the starting instruction after the starting instruction is received on the display interface so as to enable the electronic equipment to execute the operation corresponding to the function keys.
Preferably, the preset policy includes:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Preferably, the determination unit includes: a generation module to: determining a first displacement formed on the touch area by the second operation according to a preset strategy and based on the first data information, and generating a first parameter value according to a value of the first displacement;
correspondingly, the processing unit comprises: and the adjusting module is used for adjusting the parameter value of the function key according to the first parameter value so as to adjust the parameter value of the function key to be the same as the first parameter value.
According to the control method and the electronic device provided by the embodiment of the invention, when a first operation on a plane where a touch area is located is detected, whether a first pressure value of the first operation is greater than or equal to a first threshold value is judged, and if so, the electronic device is controlled to enter a first mode; in the first mode, receiving a second operation, the second operation being a continuous operation of the first operation; acquiring first data information corresponding to the second operation; obtaining a first matching result based on the first data information according to a preset strategy; executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result; therefore, various function keys can be called more simply and more quickly, the operation mode is enriched and the use experience of a user is improved without being limited to a certain fixed area. Specifically, by adopting the technical scheme of the invention, the gesture operation can be received at any position on the touch screen, different function keys can be called according to different gesture operations, various function keys can be started more simply and more quickly, and the user experience is greatly improved.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a control method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a first operation performed by an operating body in a touch area according to an embodiment of the present invention;
fig. 3(a) is a schematic diagram illustrating a second operation performed by an operating body in a touch area according to an embodiment of the invention;
fig. 3(b) is another schematic diagram illustrating an operation body performing a second operation in a touch area according to an embodiment of the invention;
fig. 4 is a schematic diagram of directions specified by a preset policy according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a control method according to a second embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating an implementation of a control method according to a third embodiment of the present invention;
fig. 7 is a schematic flow chart illustrating an implementation of a control method according to a fourth embodiment of the present invention;
fig. 8 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a second electronic device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a third electronic device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a fourth electronic device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
Fig. 1 is a schematic flow chart illustrating an implementation process of a control method according to a first embodiment of the present invention, where the control method in this embodiment is applied to an electronic device, where the electronic device includes a touch area, and in this embodiment, the touch area may be a touch screen).
Step 101: when a first operation on the plane where the touch area is located is detected, whether a first pressure value of the first operation is larger than or equal to a first threshold value is judged, and if yes, the electronic equipment is controlled to enter a first mode. The first pressure value is a force value of the first operation in a direction perpendicular to the plane where the touch area is located.
Here, the first mode may be a 3D Touch mode, i.e., X, Y axis is a plane coordinate and Z axis is a pressure coordinate, in which a user recognizes a pressure value of the screen at this time, i.e., Z axis coordinate, through different senses of vibration while continuously pressing the screen.
The first operation is an operation of an operation body on the touch area, such as an operation of a user on the touch area by using a touch pen, or an operation of a finger on the touch area directly.
Taking the example that the user directly uses a finger to operate the touch area, the first operation may be an operation perpendicular to the plane of the touch area, and when the first operation is perpendicular to the plane of the touch area, the first pressure value is a magnitude of a force when the first operation presses the touch area. However, generally, when a user operates on the touch area, the operation is not perpendicular to the plane of the touch area, but is at an angle with respect to the plane of the touch area, as shown in fig. 2, where 1 in fig. 2 represents an electronic device with a touch area. When the user operates on the touch area with an angle with respect to the plane of the touch area, the first pressure value is a force value in a direction perpendicular to the plane of the touch area in the first operation, that is, in a Z-axis direction, which is a force value in a direction of a dotted line in fig. 2.
It can be understood that, in this embodiment, the example that the user directly uses a finger to operate on the touch area is described, and in other cases, for example, the user uses a touch pen to operate on the touch area, reference may be made to the scheme of this embodiment, which is not described herein again.
Here, the first threshold may be set according to actual conditions, for example, may be set according to different usage groups, specifically, the first threshold is set to 1N when the user is detected to be a child under the age of 3, and the first threshold is set to 2N when the user is detected to be an old person under the age of 70; otherwise, the first threshold is set to 3N.
Step 102: in the first mode, a second operation is received, the second operation being a continuous operation of the first operation.
Here, the second operation is an operation of the above-described operation body on the touch area.
Taking the user directly using the finger to operate on the touch area as an example, the second operation is a sliding operation on the plane of the touch area, for example, sliding upwards, starting from the point where the first operation presses the touch area, and fig. 3(a) shows a schematic diagram of a second operation relative to the first operation shown in fig. 2, it can be seen that when the first operation is performed using the finger, the first operation touches the point at the touch area as point a, and the second operation is a sliding operation from point a to point B; fig. 3(b) gives a top view relative to the second operation shown in fig. 3(a), and it is apparent that the operation trajectory of the second operation can be clearly seen from fig. 3 (b).
Fig. 3(a) and 3(b) only show one sliding track of the second operation when the second operation is performed by the finger, and the sliding track is not limited to this, and may be other tracks on the plane where the touch area is located, such as a downward sliding track, a leftward sliding track, a rightward sliding track, a clockwise sliding track, a counterclockwise sliding track, and the like.
Of course, the second operation may be a point where the first operation presses the touch area as a starting point, and the pressing operation is continued at the starting point.
It can be understood that, in this embodiment, the example that the user directly uses a finger to operate on the touch area is described, and in other cases, for example, the user uses a touch pen to operate on the touch area, reference may be made to the scheme of this embodiment, which is not described herein again.
Step 103: acquiring first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation.
Here, the movement parameter includes at least a movement direction. Further, the movement parameters may also include a movement distance, a speed, and the like.
In this embodiment, the first data information may represent a moving direction, a moving distance, a moving speed, and the like of the second operation formed in the touch area relative to the electronic device; therefore, the obtaining of the first data information corresponding to the second operation may specifically be: the electronic equipment acquires the moving direction of the second operation relative to the electronic equipment; and/or acquiring the moving speed of the second operation relative to the electronic equipment; and/or acquiring a moving distance formed by the second operation on the first key and the like.
For example, as can be seen from at least fig. 3(b), the first data information corresponding to the second operation is "the moving direction is upward sliding".
Preferably, before the obtaining of the first data information corresponding to the second operation, the method may further include:
when receiving a second operation, acquiring a second pressure value of the second operation; the second pressure value is a force value of the second operation in the direction perpendicular to the plane where the touch area is located;
and judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode.
Specifically, when the second operation is perpendicular to the plane of the touch area, the second pressure value is the magnitude of the force when the touch area is pressed by the second operation. When the user operates on the touch area and an angle is reserved between the user and the plane where the touch area is located, the second pressure value is a force value in the direction perpendicular to the plane where the touch area is located during the second operation. Since the second operation may have a certain sliding track, when the second operation has a sliding track, the second pressure value may be an average value of the pressure values of the second operation corresponding to each point on the sliding track.
Step 104: and obtaining a first matching result based on the first data information according to a preset strategy.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Of course, the preset strategy is not limited to the above cases, for example, when the second operation is an operation of continuing to press after entering the first mode in the first mode, a "power" key is matched, and other function keys that may be involved in other electronic devices are not described herein.
That is, when the electronic device is in the first mode, the user may match different function keys through different gestures, such as up, down, left, right, etc.
Here, the first direction may be upward or downward, and the second direction may be leftward or rightward; the first function key may be a "Home" key, the second function key may be a "Back" key, the third function key may be a "Menu" key, the fourth function key may be a "last open" key, the fifth function key may be a "volume" turn-up key, and the sixth function key may be a "volume" turn-down key.
In this embodiment, a schematic diagram of the directions specified by the preset policy may be as shown in fig. 4, where as shown in fig. 4, the first direction is a direction shown by a, the second direction is a direction shown by b, the clockwise direction is a direction shown by c, and the counterclockwise direction is a direction shown by d.
It should be noted that the preset policy may be a preset rule carried by the system itself, or may be a rule set by the user according to habits of the user.
Step 105: and executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result.
Preferably, the executing the operation corresponding to the corresponding function key of the electronic device according to the first matching result may include:
displaying a display interface related to the function key according to the first matching result;
and after receiving a starting instruction on the display interface, starting a function key of the electronic equipment according to the starting instruction so as to enable the electronic equipment to execute the operation corresponding to the function key.
In this embodiment, preferably, the obtaining, according to a preset policy and based on the first data information, a first matching result, and executing, according to the first matching result, an operation corresponding to a corresponding function key of the electronic device includes:
determining a first displacement formed on the touch area by the second operation according to a preset strategy and based on the first data information, and generating a first parameter value according to a value of the first displacement;
and adjusting the parameter value of the function key according to the first parameter value so as to adjust the parameter value of the function key to be the same as the first parameter value.
In this embodiment, the electronic device may be specifically a device with a touch screen, such as a mobile phone, a tablet computer, a notebook computer, and a television.
In the embodiment of the invention, when a first operation on a plane where the touch area is located is detected, whether a first pressure value of the first operation is greater than or equal to a first threshold value is judged, and if so, the electronic equipment is controlled to enter a first mode; in the first mode, receiving a second operation, the second operation being a continuous operation of the first operation; acquiring first data information corresponding to the second operation; obtaining a first matching result based on the first data information according to a preset strategy; executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result; therefore, various function keys can be called more simply and more quickly, the operation mode is enriched and the use experience of a user is improved without being limited to a certain fixed area.
Example two
Fig. 5 is a schematic flow chart illustrating an implementation process of a control method according to a second embodiment of the present invention, where the control method in this embodiment is applied to an electronic device, where the electronic device includes a touch area, and in a preferred embodiment of the present invention, the control method mainly includes the following steps:
step 501: when a first operation on the plane where the touch area is located is detected, whether a first pressure value of the first operation is larger than or equal to a first threshold value is judged, and if yes, the electronic equipment is controlled to enter a first mode.
The first pressure value is a force value of the first operation in a direction perpendicular to the plane where the touch area is located.
Here, the first threshold may be set according to actual conditions.
For example, the first threshold may be set to 3N. That is to say, when a force value of a first operation input at any position on the touch screen is greater than 3N, the electronic device enters a first mode.
Step 502: and receiving a second operation in the first mode, and acquiring a second pressure value of the second operation.
Wherein the second operation is a continuous operation of the first operation.
Here, the second operation is an operation on a plane where a touch area of the electronic device is located.
The second pressure value is a value of a force of the second operation in a direction perpendicular to the plane of the touch area.
Step 503: and judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode.
And the first data information is used for representing data information corresponding to the movement parameters of the second operation.
Here, the movement parameter includes at least a movement direction.
Here, when the first data information corresponding to the second operation is acquired, step 504 is performed.
For example, when the force value of the first operation of the user touching the touch area is greater than 3N, the electronic device enters the first mode, and when the force value of the second operation of the user in the first mode is less than 3N, the electronic device exits the first mode and does not perform steps 504-505; at this time, the electronic device may regard the first operation as a touch operation in the normal mode, and respond to the first operation according to the touch operation in the normal mode; alternatively, the electronic device does not respond to the first operation.
Step 504: and obtaining a first matching result based on the first data information according to a preset strategy.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Of course, the preset strategy is not limited to the above cases, for example, when the second operation is an operation of continuing to press after entering the first mode in the first mode, a "power" key is matched, and other function keys that may be involved in other electronic devices are not described herein.
That is, when the electronic device is in the first mode, the user may match different function keys through different gestures (e.g., up, down, left, right, etc.).
Here, the first direction may be upward or downward, and the second direction may be leftward or rightward; the first function key may be a "Home" key, the second function key may be a "Back" key, the third function key may be a "Menu" key, the fourth function key may be a "last open" key, the fifth function key may be a "volume" turn-up key, and the sixth function key may be a "volume" turn-down key.
For example, when a first application, such as a display interface of a WeChat, is displayed on a screen of the electronic device, if a user presses the touch area with a finger, that is, the force for performing a first operation reaches a first threshold, the electronic device enters a first mode; then, the user performs a downward sliding operation, namely a second operation, at any position on the screen by using a finger, and the electronic device matches a "Back" key according to the second operation and exits from the currently displayed display interface of the WeChat.
It should be noted that the preset policy may be a preset rule carried by the system itself, or may be a rule set by the user according to habits of the user.
Step 505: and executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result.
Preferably, the executing the operation corresponding to the corresponding function key of the electronic device according to the first matching result may include:
displaying a display interface related to the function key according to the first matching result;
and after receiving a starting instruction on the display interface, starting a function key of the electronic equipment according to the starting instruction so as to enable the electronic equipment to execute the operation corresponding to the function key.
In this embodiment, preferably, the obtaining, according to a preset policy and based on the first data information, a first matching result, and executing, according to the first matching result, an operation corresponding to a corresponding function key of the electronic device includes:
determining a first displacement formed on the touch area by the second operation according to a preset strategy and based on the first data information, and generating a first parameter value according to a value of the first displacement;
and adjusting the parameter value of the function key according to the first parameter value so as to adjust the parameter value of the function key to be the same as the first parameter value.
In this embodiment, the electronic device may be specifically a device with a touch screen, such as a mobile phone, a tablet computer, a notebook computer, and a television.
In the embodiment of the invention, when a first operation on a plane where the touch area is located is detected, whether a first pressure value of the first operation is greater than or equal to a first threshold value is judged, and if so, the electronic equipment is controlled to enter a first mode; receiving a second operation in the first mode, and acquiring a second pressure value of the second operation; judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode; acquiring first data information corresponding to the second operation; obtaining a first matching result based on the first data information according to a preset strategy; executing the operation corresponding to the corresponding function key of the electronic equipment according to the first matching result; therefore, the gesture operation can be sensed at any position on the touch screen, different function keys are called according to different gesture operations, various function keys are started more simply and rapidly, the first mode can be quitted conveniently, and the use experience of a user is greatly improved.
EXAMPLE III
Fig. 6 is a schematic flow chart illustrating an implementation process of a control method according to a third embodiment of the present invention, where the control method in this embodiment is applied to an electronic device, where the electronic device includes a touch area, and in a preferred embodiment of the present invention, the control method mainly includes the following steps:
step 601: when a first operation on the plane where the touch area is located is detected, whether a first pressure value of the first operation is larger than or equal to a first threshold value is judged, and if yes, the electronic equipment is controlled to enter a first mode.
The first pressure value is a force value of the first operation in a direction perpendicular to the plane where the touch area is located.
Here, the first threshold may be set according to actual conditions.
For example, the first threshold may be set to 3N. The electronic equipment enters a first mode when the force value of the first operation is larger than 3N.
Step 602: and receiving a second operation in the first mode, and acquiring a second pressure value of the second operation.
Wherein the second operation is a continuous operation of the first operation.
Here, the second operation is an operation on a plane where a touch area of the electronic device is located.
Step 603: and judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode.
And the first data information is used for representing data information corresponding to the movement parameters of the second operation.
Here, the movement parameter includes at least a movement direction.
Here, when the first data information corresponding to the second operation is acquired, step 604 is performed.
Step 604: and obtaining a first matching result based on the first data information according to a preset strategy.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Of course, the preset strategy is not limited to the above cases, for example, when the second operation is an operation of continuing to press after entering the first mode in the first mode, a "power" key is matched, and other function keys that may be involved in other electronic devices are not described herein.
That is, when the electronic device is in the first mode, the user may match different function keys through different gestures (e.g., up, down, left, right, etc.).
Here, the first direction may be upward or downward, and the second direction may be leftward or rightward; the first function key may be a "Home" key, the second function key may be a "Back" key, the third function key may be a "Menu" key, the fourth function key may be a "last open" key, the fifth function key may be a "volume" turn-up key, and the sixth function key may be a "volume" turn-down key.
It should be noted that the preset policy may be a preset rule carried by the system itself, or may be a rule set by the user according to habits of the user.
Step 605: and displaying a display interface related to the function key according to the first matching result.
Step 606: and after receiving a starting instruction on the display interface, starting a function key of the electronic equipment according to the starting instruction so as to enable the electronic equipment to execute the operation corresponding to the function key.
Assuming that the first matching result obtained in step 604 is the "Menu" key, a display interface of the "Menu" key matching the currently displayed application appears on the screen of the electronic device. For example, if the short message application is currently opened by the user, after the user performs the second operation, a display interface of a "Menu" key matched with the display interface of the short message application appears on the display interface of the short message application, and the display interface may have information such as "search, delete, harassment intercept, set" and the like. If the user preselects the disturbance interception option, the disturbance interception option on the display interface can be clicked, and after the electronic equipment receives the starting instruction, the operation corresponding to the Menu key is executed, namely the short message intercepted by the electronic equipment is displayed to the user.
In this embodiment, the electronic device may be specifically a device with a touch screen, such as a mobile phone, a tablet computer, a notebook computer, and a television.
In the embodiment of the invention, when a first operation on a plane where the touch area is located is detected, whether a first pressure value of the first operation is greater than or equal to a first threshold value is judged, and if so, the electronic equipment is controlled to enter a first mode; receiving a second operation in the first mode, and acquiring a second pressure value of the second operation; judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode; acquiring first data information corresponding to the second operation; obtaining a first matching result based on the first data information according to a preset strategy; displaying a display interface related to the function key according to the first matching result; after a starting instruction is received on the display interface, starting a function key of the electronic equipment according to the starting instruction so that the electronic equipment executes an operation corresponding to the function key; therefore, the gesture operation can be sensed at any position on the touch screen, different function keys can be started according to different gesture operations, and a display interface related to the function keys can be presented, so that the user can operate more simply and quickly, the first mode can be conveniently quitted, and the use experience of the user is greatly improved.
Example four
Fig. 7 is a schematic flow chart illustrating an implementation process of a control method according to a fourth embodiment of the present invention, where the control method in this embodiment is applied to an electronic device, where the electronic device includes a touch area, and in a preferred embodiment of the present invention, the control method mainly includes the following steps:
step 701: when a first operation on the plane where the touch area is located is detected, whether a first pressure value of the first operation is larger than or equal to a first threshold value is judged, and if yes, the electronic equipment is controlled to enter a first mode.
The first pressure value is a force value of the first operation in a direction perpendicular to the plane where the touch area is located.
Here, the first threshold may be set according to actual conditions, and for example, the first threshold may be set to 3N.
Step 702: and receiving a second operation in the first mode, and acquiring a second pressure value of the second operation.
Wherein the second operation is a continuous operation of the first operation.
Here, the second operation is an operation on a plane where a touch area of the electronic device is located.
Step 703: and judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode.
And the first data information is used for representing data information corresponding to the movement parameters of the second operation.
Here, the movement parameter includes at least a movement direction.
Here, when the first data information corresponding to the second operation is acquired, step 704 is performed.
Step 704: and determining a first displacement formed on the touch area by the second operation based on the first data information according to a preset strategy, and generating a first parameter value according to a value of the first displacement.
Here, the first displacement may be expressed as: the second operation is a directed line segment from the initial position to the final position of the touch area, as shown in fig. 4, d represents a second operation in a counterclockwise direction, and a first displacement formed on the touch area by the second operation is。
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Here, the fifth function key may be a "volume" up key, and the sixth function key may be a "volume" down key; alternatively, the fifth function key may be a "volume" turn-down key, and the sixth function key may be a "volume" turn-up key.
It should be noted that the preset policy may be a preset rule carried by the system itself, or may be a rule set by the user according to habits of the user.
Here, each unit displacement may represent N adjustment amounts, such as volume, where N is a positive integer.
For example, if the function key matched with the second operation is the "volume" turn-down key, if the first displacement corresponding to the second operation is 2, the electronic device will decrease the volume by 2 volumes based on the current volume value after receiving the second operation.
Step 705: and adjusting the parameter value of the function key according to the first parameter value so as to adjust the parameter value of the function key to be the same as the first parameter value.
In this embodiment, the function key refers to a key capable of adjusting the size or strength of a function parameter, for example, the function parameter may be a volume key.
In this embodiment, the first parameter value may specifically be a volume parameter of the electronic device; specifically, when the first function parameter is a volume parameter, the electronic device can determine an adjustment mode and an adjustment amount of the volume of the electronic device based on the received first parameter value corresponding to the second operation, so that the mode of volume adjustment is no longer a fixed mode, but can be correspondingly changed based on a relationship between the movement parameters of the second operation, so that the user keeps consistent in touch and psychological feelings, and user experience is improved.
In this embodiment, the electronic device may be specifically a device with a touch screen, such as a mobile phone, a tablet computer, a notebook computer, and a television.
In the embodiment of the invention, when a first operation on a plane where the touch area is located is detected, whether a first pressure value of the first operation is greater than or equal to a first threshold value is judged, and if so, the electronic equipment is controlled to enter a first mode; receiving a second operation in the first mode, and acquiring a second pressure value of the second operation; judging whether the second pressure value is greater than or equal to a first threshold value, if so, acquiring first data information corresponding to the second operation, and otherwise, controlling the electronic equipment to exit the first mode; acquiring first data information corresponding to the second operation; determining a first displacement formed on the touch area by the second operation according to a preset strategy and based on the first data information, and generating a first parameter value according to a value of the first displacement; adjusting the parameter value of the function key according to the first parameter value so as to adjust the parameter value of the function key to be the same as the first parameter value; therefore, the gesture operation can be sensed at any position on the screen, the function keys are conveniently adjusted through the gesture operation, and the use experience of a user is greatly improved if the size or strength of the volume key is large or small.
EXAMPLE five
An embodiment of the present invention provides an electronic device, where the electronic device includes a touch area, and as shown in fig. 8, the electronic device includes: a judgment unit 81, a reception unit 82, a first acquisition unit 83, a determination unit 84, and a processing unit 85; wherein,
the determining unit 81 is configured to, when a first operation on a plane where the touch area is located is detected, determine whether a first pressure value of the first operation is greater than or equal to a first threshold, and if so, control the electronic device to enter a first mode; the first pressure value is a value of a force of the first operation in a direction perpendicular to the plane where the touch area is located;
the receiving unit 82 is configured to receive a second operation in the first mode; the second operation is a continuous operation of the first operation;
the first obtaining unit 83 is configured to obtain first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation;
the determining unit 84 is configured to obtain a first matching result according to a preset policy and based on the first data information;
the processing unit 85 is configured to execute an operation corresponding to a corresponding function key of the electronic device according to the first matching result.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on the electronic device, as will be understood by reference to the description related to the foregoing control method.
EXAMPLE six
An embodiment of the present invention provides an electronic device, where the electronic device includes a touch area, and as shown in fig. 9, the electronic device includes: a determination unit 81, a reception unit 82, a first acquisition unit 83, a determination unit 84, a processing unit 85, a second acquisition unit 86, and a control unit 87; wherein,
the determining unit 81 is configured to, when a first operation on a plane where the touch area is located is detected, determine whether a first pressure value of the first operation is greater than or equal to a first threshold, and if so, control the electronic device to enter a first mode; the first pressure value is a value of a force of the first operation in a direction perpendicular to the plane where the touch area is located;
the receiving unit 82 is configured to receive a second operation in the first mode; the second operation is a continuous operation of the first operation;
the first obtaining unit 83 is configured to obtain first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation;
the determining unit 84 is configured to obtain a first matching result according to a preset policy and based on the first data information;
the processing unit 85 is configured to execute an operation corresponding to a corresponding function key of the electronic device according to the first matching result;
the second obtaining unit 86 is configured to obtain a second pressure value of a second operation when the second operation is received; the second pressure value is a force value of the second operation in the direction perpendicular to the plane where the touch area is located;
the control unit 87 is configured to determine whether the second pressure value is greater than or equal to a first threshold, and if so, notify the first obtaining unit 83 to obtain first data information corresponding to the second operation; otherwise, controlling the electronic equipment to exit the first mode.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on the electronic device, as will be understood by reference to the description related to the foregoing control method.
EXAMPLE seven
An embodiment of the present invention provides an electronic device, where the electronic device includes a touch area, and as shown in fig. 10, the electronic device includes: a judging unit 81, a receiving unit 82, a first acquiring unit 83, a determining unit 84, and a processing unit 85; wherein,
the determining unit 81 is configured to, when a first operation on a plane where the touch area is located is detected, determine whether a first pressure value of the first operation is greater than or equal to a first threshold, and if so, control the electronic device to enter a first mode; the first pressure value is a value of a force of the first operation in a direction perpendicular to the plane where the touch area is located;
the receiving unit 82 is configured to receive a second operation in the first mode; the second operation is a continuous operation of the first operation;
the first obtaining unit 83 is configured to obtain first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation;
the determining unit 84 is configured to obtain a first matching result according to a preset policy and based on the first data information;
the processing unit 85 is configured to execute an operation corresponding to a corresponding function key of the electronic device according to the first matching result.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Specifically, the processing unit 85 includes:
a presentation module 851, configured to present a display interface related to the function key according to the first matching result;
the starting module 852 is configured to start a function key of the electronic device according to a starting instruction after receiving the starting instruction on the display interface, so that the electronic device executes an operation corresponding to the function key.
Preferably, the electronic device may further include:
a second obtaining unit 86, configured to obtain a second pressure value of a second operation when the second operation is received; the second pressure value is a force value of the second operation in the direction perpendicular to the plane where the touch area is located;
the control unit 87 is configured to determine whether the second pressure value is greater than or equal to a first threshold, and if so, notify the first obtaining unit to obtain first data information corresponding to the second operation; otherwise, controlling the electronic equipment to exit the first mode.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on the electronic device, as will be understood by reference to the description related to the foregoing control method.
Example eight
An embodiment of the present invention provides an electronic device, where the electronic device includes a touch area, and as shown in fig. 10, the electronic device includes: a judging unit 81, a receiving unit 82, a first acquiring unit 83, a determining unit 84, and a processing unit 85; wherein,
the determining unit 81 is configured to, when a first operation on a plane where the touch area is located is detected, determine whether a first pressure value of the first operation is greater than or equal to a first threshold, and if so, control the electronic device to enter a first mode; the first pressure value is a value of a force of the first operation in a direction perpendicular to the plane where the touch area is located;
the receiving unit 82 is configured to receive a second operation in the first mode; the second operation is a continuous operation of the first operation;
the first obtaining unit 83 is configured to obtain first data information corresponding to the second operation; the first data information is used for representing data information corresponding to the movement parameters of the second operation;
the determining unit 84 is configured to obtain a first matching result according to a preset policy and based on the first data information;
the processing unit 85 is configured to execute an operation corresponding to a corresponding function key of the electronic device according to the first matching result.
Preferably, the preset policy may include:
when the moving direction corresponding to the second operation is a first direction, matching a first function key;
when the moving direction corresponding to the second operation is the opposite direction of the first direction, matching a second function key;
when the moving direction corresponding to the second operation is a second direction, matching a third function key; wherein the second direction is non-parallel to the first direction;
when the moving direction corresponding to the second operation is the opposite direction of the second direction, matching a fourth function key;
when the moving direction corresponding to the second operation is the clockwise direction, matching a fifth function key;
and when the moving direction corresponding to the second operation is the anticlockwise direction, matching a sixth function key.
Specifically, the determining unit 84 may include:
a generating module 841, configured to determine, according to a preset policy and based on the first data information, a first displacement formed on the touch area by the second operation, and generate a first parameter value according to a value of the first displacement;
correspondingly, the processing unit 85 may further include:
an adjusting module 853, configured to adjust the parameter value of the function key according to the first parameter value, so as to adjust the parameter value of the function key to a value same as the first parameter value.
Preferably, the electronic device may further include:
a second obtaining unit 86, configured to obtain a second pressure value of a second operation when the second operation is received; the second pressure value is a force value of the second operation in the direction perpendicular to the plane where the touch area is located;
the control unit 87 is configured to determine whether the second pressure value is greater than or equal to a first threshold, and if so, notify the first obtaining unit to obtain first data information corresponding to the second operation; otherwise, controlling the electronic equipment to exit the first mode.
It should be understood by those skilled in the art that the functions of each processing unit in the electronic device according to the embodiment of the present invention may be realized by analog circuits that implement the functions described in the embodiment of the present invention, or by running software that executes the functions described in the embodiment of the present invention on the electronic device, as will be understood by reference to the description related to the foregoing control method.
It should be noted that the functions of the determining Unit 81, the receiving Unit 82, the first obtaining Unit 83, the determining Unit 84, the Processing Unit 85, the second obtaining Unit 86, the controlling Unit 87, the presenting module 851 included in the Processing Unit 85, the starting module 852, the adjusting module 853, and the generating module 841 included in the determining Unit 84 according to the embodiment of the present invention may be implemented by a Central Processing Unit (CPU), a Micro Processor Unit (MPU), or a Digital Signal Processing (DSP) chip in the electronic device.
In the embodiments provided in the present invention, it should be understood that the disclosed method, apparatus and electronic device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit according to the embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.