CN111338489B - Parameter adjustment method and electronic equipment - Google Patents

Parameter adjustment method and electronic equipment Download PDF

Info

Publication number
CN111338489B
CN111338489B CN202010109123.4A CN202010109123A CN111338489B CN 111338489 B CN111338489 B CN 111338489B CN 202010109123 A CN202010109123 A CN 202010109123A CN 111338489 B CN111338489 B CN 111338489B
Authority
CN
China
Prior art keywords
target
parameter
value
angle
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010109123.4A
Other languages
Chinese (zh)
Other versions
CN111338489A (en
Inventor
黄晓娴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010109123.4A priority Critical patent/CN111338489B/en
Publication of CN111338489A publication Critical patent/CN111338489A/en
Priority to PCT/CN2021/077025 priority patent/WO2021164760A1/en
Application granted granted Critical
Publication of CN111338489B publication Critical patent/CN111338489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means

Abstract

The invention provides a parameter adjustment method, electronic equipment and a storage medium. The method comprises the following steps: determining the rotation angle of the touch pen and the duration of the touch pen at the rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotating initial position, and a rotating angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration. According to the invention, a user can complete adjustment of the target parameters by rotating the touch pen under the condition of clicking the target item, and the user does not need to click the target item for multiple times by using the touch pen, so that the parameter adjustment efficiency is improved. The adjusting speed of the target parameter can be flexibly controlled through the first parameter value, the first angle and the rotating angle, and the flexibility of adjusting the target parameter is improved.

Description

Parameter adjustment method and electronic equipment
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a parameter adjustment method and an electronic device.
Background
Along with portability of electronic products such as tablet computers and mobile phones, information input and control modes of the electronic products are developed from traditional mouse and keyboard modes to touch modes. One of the most widely used touch modes is capacitive touch, which works by detecting a change in capacitance at a finger press to locate the touch position. The touch control pen simulates finger touch, the capacitance of the place pressed by the touch control pen changes, and the touch position can be positioned.
At present, many intelligent terminal devices provide a stylus, and since the nib of the stylus is finer, more convenient and efficient input than finger input can be provided, and more accurate screen clicking operation can be realized. However, the conventional manner of implementing the selection operation by clicking the tip of the stylus is still adopted in the interactive operation of the stylus, for example, when parameters such as volume, screen brightness, font size, etc. are adjusted by the stylus, the user needs to use the stylus to click the screen for multiple times to perform adjustment, so that the interactive operation of the stylus is complicated, and the operation efficiency is reduced.
Disclosure of Invention
The invention provides a parameter adjustment method, electronic equipment and a storage medium, which are used for solving the problems of complex interaction operation and low operation efficiency when a stylus is used for parameter adjustment.
In a first aspect, an embodiment of the present invention provides a parameter adjustment method, applied to an electronic device, where the method includes:
determining a rotation angle of a touch pen and a duration time of the touch pen in a rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment;
determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle;
and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first determining module is used for determining the rotation angle of the touch pen and the duration time of the touch pen in a rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment;
the second determining module is used for determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle;
And the adjusting module is used for adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration.
In a third aspect, an electronic device is provided, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the parameter adjustment method according to the invention.
In a fourth aspect, a computer readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the parameter adjustment method according to the invention.
In the embodiment of the invention, under the condition that a touch pen clicks a target item on a touch screen of the electronic equipment, the rotation angle of the touch pen and the duration of the touch pen at a rotation end position are determined; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration. According to the embodiment of the invention, a user can finish the adjustment of the target parameters only by rotating the touch pen under the condition of clicking the target item, and the target item does not need to be clicked for multiple times by using the touch pen, so that the parameter adjustment efficiency is improved. In addition, the current first parameter value of the target parameter corresponding to the target item, the first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotation position, and the rotation angle can flexibly control the adjustment speed of the target parameter, and the flexibility of adjusting the target parameter is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart showing a parameter adjustment method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a target item display interface according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of another object display interface according to a first embodiment of the present invention;
FIG. 4 is a schematic diagram of a stylus and a touch screen according to a first embodiment of the invention
FIG. 5 is a flow chart showing a parameter adjustment method in a second embodiment of the present invention;
FIG. 6 is a schematic diagram showing a touch screen establishing a coordinate system according to a second embodiment of the present invention;
FIG. 7 is a schematic diagram showing a touch screen pitch angle correction in a second embodiment of the present invention;
FIG. 8 is a schematic diagram showing a stylus pitch angle after correction in a second embodiment of the invention;
FIG. 9 is a schematic view showing an angle between a stylus and a touch screen in a second embodiment of the present invention;
fig. 10 is a block diagram showing the structure of an electronic device in the third embodiment of the present invention;
fig. 11 is a block diagram showing the structure of an electronic device in the fourth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example 1
Referring to fig. 1, a flowchart of a parameter adjustment method according to a first embodiment of the present invention may specifically include the following steps:
step 101, determining a rotation angle of a touch pen and a duration time of the touch pen in a rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic device.
In an embodiment of the present invention, the target item includes: the target parameter corresponds to the identifier or the icon, wherein the target parameter comprises: any one of volume of the electronic device, screen brightness of the electronic device, and font size of the electronic device; the target item includes: the icon or the mark corresponding to the volume of the electronic equipment, or the icon or the mark corresponding to the screen brightness of the electronic equipment, or the icon or the mark corresponding to the font size of the electronic equipment.
In the embodiment of the present invention, referring to fig. 2, icons corresponding to each target item are displayed on a touch screen, and one of the icons may be selected for clicking by using a stylus, and when one of the target items is clicked by the stylus, i.e. the target parameter corresponding to the target item is selected for adjustment, for example, the volume is adjusted by clicking the icon corresponding to the volume by using the stylus.
In the embodiment of the invention, the duration of the rotation termination position refers to the residence time of the stylus at the rotation termination position after rotating a certain angle and stopping.
According to the embodiment of the invention, the touch pen is used for clicking the target item, rotating the target item by a certain rotation angle by taking the target item as a fixed point, stopping, and then stopping at a rotation termination position for a period of time to finish the adjustment of the target parameter corresponding to the target item. Here, the user only needs to perform the operation step of rotating the stylus with clicking the target item.
In the embodiment of the present invention, the target item may also be an icon or a logo corresponding to an increase or decrease of the target parameter, and referring to fig. 3, for example, the target item is an icon "+" corresponding to an increase of the volume or an icon "-" corresponding to an decrease of the volume; when the user enters the volume adjustment interface, the volume is increased by clicking the target item "+" through the stylus, and the volume is decreased by clicking the target item "-" through the stylus.
In the embodiment of the present invention, the target item may also be other icons or marks corresponding to the parameters to be adjusted, which is not limited herein.
Step 102, determining a target adjustment speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle.
In an embodiment of the present invention, the target parameters include: one of a decibel value of the volume, a brightness value of the screen, and a font size of the font size.
In the embodiment of the invention, the current first parameter value of the target parameter refers to the first parameter value before the adjustment by using the touch pen; for example, when the target parameter is a decibel value of the volume, the corresponding first parameter value is a decibel value of the current volume, that is, a decibel value of the volume before the adjustment by the stylus.
In the embodiment of the invention, the first angle refers to an angle value between the touch pen and the touch screen before the touch pen clicks the target item but does not rotate. Referring to fig. 4, D1 is an initial position of the target item clicked by the stylus, and the first angle is a.
In the embodiment of the present invention, the angle between the stylus and the touch screen selects the angle between the stylus and the designated direction of the touch screen, and in fig. 4, the angle between the stylus and the touch screen selects the angle between the stylus and the lower screen of the touch screen.
In the embodiment of the invention, the rotation angle refers to the angle at which the stylus clicks on a target item and rotates by taking the target item as a fixed point. Referring to fig. 4, when the stylus is rotated from the D1 position to the D2 position, the angle between the stylus and the touch screen at the D2 position is B, and the rotation angle is (B-ase:Sub>A).
In the embodiment of the present invention, when the target items are "+" and "-" in fig. 3, the first angle may be selected to be less than or equal to 90 ° or may be selected to be greater than or equal to 90 °, and the user may set the first angle according to his habit, which is not limited herein.
In the embodiment of the invention, a corresponding relation or a proportional relation can be established by adopting the first parameter value, the first angle value, the rotation angle and the target adjusting speed in advance, and then the target adjusting speed can be determined according to the first parameter value, the first angle value, the rotation angle and the corresponding relation or the proportional relation. The target adjustment speed refers to the adjustment speed of the first parameter value.
And step 103, adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration.
In an embodiment of the present invention, step 103 includes: and increasing or decreasing the duration of the target parameter according to the target adjustment speed.
For example, when the target adjustment speed is 5 db/s and the duration of the stylus at the rotation end position is 3s, the adjustment of the target parameter is increased or decreased at a speed of 5 db/s for a total increase or decrease of 3s, and the adjustment value is 15 db.
In the embodiment of the invention, after the target adjustment speed is determined, the duration of the touch pen at the rotation end position is determined, the adjustment value of the target parameter is determined, and then the adjusted second parameter value is determined according to the adjustment value and the first parameter value, wherein the second parameter value is the final value of the target parameter which needs to be adjusted by the user.
For example, when the target adjustment speed is 5 db/s and the stylus continues for 3s at the rotation end position, the adjustment value of the target parameter is 15 db, and the second parameter is obtained by adding or subtracting 15 db from the first parameter. The addition or subtraction may be determined according to the rotation direction of the stylus, for example, in fig. 4, when the stylus rotates toward the lower screen of the touch screen, the adjustment value is subtracted, and when the stylus rotates toward the upper screen of the touch screen, the adjustment value is added.
In the embodiment of the invention, after the target adjustment speed and the second parameter value are determined, the target parameter is adjusted from the first parameter value to the second parameter value according to the target adjustment speed, for example, the volume is adjusted from the first parameter value to the second parameter value according to the speed of 5 db/s.
In the embodiment of the invention, under the condition that a touch pen clicks a target item on a touch screen of the electronic equipment, the rotation angle of the touch pen and the duration of the touch pen at a rotation end position are determined; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration. According to the embodiment of the invention, a user can finish the adjustment of the target parameters only by rotating the touch pen under the condition of clicking the target item, and the target item does not need to be clicked for multiple times by using the touch pen, so that the parameter adjustment efficiency is improved. In addition, the target adjusting speed of the target parameter can be flexibly adjusted through the current first parameter value of the target parameter corresponding to the target item, the first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotating position, and the rotating angle, and the adjusting efficiency of the target parameter is improved.
Example two
Referring to fig. 5, a flowchart of a parameter adjustment method according to a second embodiment of the present invention may specifically include the following steps:
step 201, determining a second angle between the stylus and a target coordinate axis in preset coordinates and a third angle between the touch screen and the target coordinate axis in preset coordinates when the stylus is at a rotation initial position.
According to the embodiment of the invention, the inclination angle states of the touch screen and the touch pen are obtained by arranging the Android direction sensors in the electronic equipment where the touch screen is positioned and in the touch pen.
Referring to fig. 6, a coordinate system (x-axis, y-axis, z-axis) is established on the electronic device, the origin of the coordinate system is set on the touch screen, and the x-axis is from left to right along the horizontal direction of the touch screen; the direction of the y axis points from the second edge of the touch screen to the first edge of the touch screen and is perpendicular to the x axis; the direction of the z-axis is perpendicular to the touch screen and points to the side away from the touch screen.
In the electronic device, the first edge and the second edge are oppositely arranged, wherein the first edge is the top of the electronic device, and the second edge is the bottom of the electronic device.
Wherein, android direction sensor includes: geomagnetic field sensors and accelerometers. The electronic device calculates a pitch angle (angle rotated around the x axis) of the display screen through the geomagnetic field sensor and the accelerometer to be an angle between a plane parallel to the touch screen and a plane parallel to the ground.
The method for determining the first pitch angle may include: placing the electronic equipment in such a way that the plane where the touch screen is positioned is parallel to the plane where the ground is positioned, the second edge of the touch screen is close to a user, and the first edge of the touch screen is inclined to the ground, so that the first pitch angle of the touch screen is a positive value; and tilting the first edge of the touch screen in a direction away from the ground, wherein the first pitch angle of the touch screen is a negative value. The first pitch angle of the touch screen ranges from-180 deg..
In the embodiment of the invention, the method for determining the second pitch angle of the touch pen is consistent with the method for determining the first pitch angle of the touch screen of the electronic device. For the stylus, in practical application, the tail of the stylus may be used as the first edge of the touch screen in the first pitch angle determining method, and the pen point may be used as the second edge of the touch screen in the first pitch angle determining method. The second pitch angle of the stylus is also in the range-180 ° -180 °.
In an embodiment of the present invention, referring to fig. 7, (a) shows that the range of the first pitch angle of the touch screen when tilted is-180 ° -180 °; for the convenience of calculation, the first pitch angle in fig. 7 (a) is corrected to obtain a third angle in fig. 7 (b), where the third angle is an included angle formed by the touch screen and the negative direction of the X axis when the first edge of the touch screen rotates as a fixed point.
In the embodiment of the invention, referring to fig. 8, a second pitch angle of the stylus is corrected by adopting a correction method similar to that of the first pitch angle of the touch screen, so as to obtain a second angle in fig. 8, wherein the second angle is an included angle formed by the stylus and the negative direction of the X axis when the pen point of the stylus rotates as a fixed point.
In the embodiment of the present invention, in fig. 7 and 8, the target coordinate axis selects the X axis, where other axes may be used as correction criteria to determine the second angle and the third angle, which is not limited herein.
Step 202, determining a first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotation position according to the second angle and the third angle.
In an embodiment of the present invention, referring to fig. 9, the second angle is an angle between the stylus and the negative direction of the X-axis, which is newPenPitch in fig. 9. The third angle is the angle between the stylus and the negative direction of the X-axis, and is the angle between the stylus and the touch screen in the case of the rotation initial position of the stylus in fig. 4, and is the angle between the newphonposition in fig. 9, and the first angle=180 ° - (the second angle-the third angle).
In the embodiment of the present invention, the angle between the touch pen and the touch screen after rotation can also be calculated by the above manner, and will not be described herein.
In step 203, in the case that the stylus clicks the target item on the touch screen of the electronic device, a rotation angle of the stylus and a duration of time that the stylus is in a rotation end position are determined.
In the embodiment of the invention, the rotation angle of the touch pen and the duration of the touch pen at the rotation end position can be determined under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment and rotates along the target direction by taking the clicking position of the touch pen at the target item as a fixed point. Wherein the target direction is used to indicate an increase or decrease of the target parameter.
In the embodiment of the present invention, referring to fig. 4, the touch screen includes a first edge a and a second edge B that are disposed opposite to each other, where the first edge a is directed to one side of the camera of the electronic device, and the second edge B is directed to one side of the home key. The target direction includes rotation of the stylus to either the first edge or the second edge of the touch screen. When the touch control pen rotates to the first edge of the touch screen, the indication target parameter needs to be increased, and when the touch control pen rotates to the second edge of the touch screen, the indication target parameter needs to be decreased.
Step 204, determining a unit adjustment speed of the target parameter according to the current first parameter value of the target parameter corresponding to the target item and a first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotation position.
In the embodiment of the invention, when the target direction indicates that the target parameter increases, the target adjustment speed is the adjustment speed when the target parameter increases. When the target direction indicates that the target parameter decreases, the target adjustment speed is the adjustment speed at which the target parameter decreases.
In case the target direction is used to indicate an increase of the target parameter and/or the target item is used to indicate an increase of the target parameter, step 204 comprises: obtaining a maximum value corresponding to the target parameter; determining a first difference between the maximum value and the first parameter value; determining a second difference value between a preset maximum angle value and the first angle, wherein the preset maximum angle value is the maximum angle value between the touch pen and the touch screen; and determining the unit adjusting speed of the target parameter according to the first difference value and the second difference value.
In the embodiment of the present invention, when the target parameter needs to be adjusted to be larger, referring to fig. 4, the stylus may be turned toward the first edge a of the touch screen; referring to fig. 3, the increasing volume may also be achieved by clicking on an icon corresponding to the target parameter, for example, clicking on an icon "+" corresponding to the increasing volume.
In the embodiment of the invention, the electronic equipment is provided with a default maximum value of the target parameter, wherein the maximum value refers to the maximum value to which the target parameter can be adjusted. For example, the electronic device defaults to a maximum of 100 db, the font size of the font has a maximum of 25.
In the embodiment of the invention, the preset maximum angle value is the maximum angle value which can be formed between the touch pen and the touch screen, and is usually 180 degrees.
In the embodiment of the present invention, for example, when the target item is a volume, the first parameter value of the current volume is 50 db, and the maximum value of the volume is 100 db, and the first difference between the maximum value and the first parameter value is: the maximum value minus the first parameter value is 50 db; when the touch pen is at the initial position and the first angle value of the touch screen is 80 degrees, the preset maximum angle value is 180 degrees, and the second difference value between the preset maximum angle value and the first angle is: subtracting the first angle value from the preset maximum angle value to be 100 degrees; the unit adjustment speed is: the first difference divided by the second difference is 0.5 db/s.
In case the target direction is used to indicate a decrease of the target parameter and/or the target item is used to indicate a decrease of the target parameter, step 204 comprises: acquiring a minimum value corresponding to the target parameter; determining a third difference between the first parameter value and the minimum value; determining a fourth difference value between the first angle and a preset minimum angle value, wherein the preset minimum angle value is a minimum angle value between the touch pen and the touch screen; and determining the unit adjusting speed of the target parameter according to the third difference value and the fourth difference value.
In the embodiment of the invention, when the target parameter needs to be reduced, referring to fig. 4, the stylus can be rotated towards the second edge of the touch screen; referring to fig. 3, the decreasing of the volume may also be achieved by clicking on a decreasing icon corresponding to the target parameter, for example, clicking on an icon "-" corresponding to the increasing of the volume.
In the embodiment of the invention, the minimum value refers to the minimum value to which the default target parameters of the electronic equipment can be adjusted, and can also be default to be 0. For example, the minimum value of the sound volume is 0 db, the minimum value of the font size is 5 font size, and the like.
In the embodiment of the present invention, the preset minimum angle value is a minimum angle value that can be formed between the stylus and the touch screen, and is usually defaulted to 0 °.
In the embodiment of the present invention, for example, when the target item is a volume, the first parameter value of the current volume is 50 db, and the maximum value of the volume is 0 db, and the third difference between the first parameter value and the maximum value is: the first parameter value minus the maximum value is 50 db; when the first angle value of the touch screen is 80 degrees and the touch pen is at the initial position, the preset minimum angle value is 0 degrees, and a fourth difference value between the first angle value and the preset minimum angle value is: subtracting a preset minimum angle value from the first angle value to be 80 degrees; the unit adjustment speed is: the third difference divided by the fourth difference is 0.625 db/s.
Step 205, determining a target adjustment speed of the target parameter according to the unit adjustment speed and the rotation angle.
In the embodiment of the invention, when the target direction indicates that the target parameter is enlarged, and/or the target item indicates that the target parameter is increased, the target adjustment speed can be determined according to the obtained unit adjustment speed and rotation angle during the enlargement. Specifically, the target adjustment speed is obtained by multiplying the unit adjustment speed by the rotation angle.
Wherein, when the user needs the target adjustment speed to be big, can increase rotation angle. For example, when the rotation angle is 5 °, then the target adjustment speed of the sound volume: the 5 times 0.5 dB/s is 2.5 dB/s. When the rotation angle is 10 °, the target adjustment speed of the sound volume is: 10 times 0.5 db/s is 5 db/s.
In the embodiment of the present invention, when the target direction indicates a decrease in the target parameter and/or the target item indicates a decrease in the target parameter, the target adjustment speed may be determined according to the unit adjustment speed and the rotation angle at the time of the decrease obtained above. Specifically, the target adjustment speed is obtained by multiplying the unit adjustment speed by the rotation angle.
For example, when the rotation angle is 5 °, the target adjustment speed at which the sound volume is reduced: 5 times 0.625 db/s is 3.125 db/s. When the rotation angle is 10 °, the target adjustment speed of the sound volume is: 10 times 0.625 db/s is 6.25 db/s.
In the embodiment of the invention, the user can determine the speed of adjusting the target parameter through the initial placement position and the rotation angle of the touch pen, thereby being more convenient for the user to adjust the target parameter according to the actual needs and improving the accuracy of adjusting the target parameter.
And step 206, adjusting the target parameter to a second parameter value according to the target adjustment speed and the duration.
In an embodiment of the present invention, step 206 includes: determining an adjustment value of the target parameter according to the target adjustment speed and the rotation duration; adding the first parameter value to the adjustment value to obtain a second parameter value after adjustment of the target parameter, in case the target direction is used for indicating an increase of the target parameter and/or the target item is used for indicating an increase of the target parameter; subtracting the first parameter value from the adjustment value to obtain a second parameter value after adjustment of the target parameter, in the case that the target direction is used for indicating the decrease of the target parameter and/or the target item is used for indicating the decrease of the target parameter; and adjusting the target parameter to the second parameter value according to the target adjusting speed.
When the target parameter is enlarged, i.e. the touch pen rotates towards the first edge of the touch screen, and/or clicks an enlarged icon corresponding to the target parameter, the first parameter value and the adjustment value can be added to obtain a second parameter value after the target parameter is adjusted. And adding the current first parameter value of the target parameter with the adjustment value to obtain a second parameter value.
When the target parameter is adjusted to be small, namely, the touch pen rotates towards the second edge of the touch screen, and/or the reduced icon corresponding to the target parameter is clicked, the first parameter value and the adjustment value can be subtracted to obtain a second parameter value after the target parameter is adjusted. And subtracting the adjustment value from the current first parameter value of the target parameter to obtain a second parameter value.
In the embodiment of the invention, after the target adjustment speed and the second parameter value are determined, the target parameter is adjusted from the first parameter value to the second parameter value according to the target adjustment speed, for example, the volume is adjusted from the first parameter value to the second parameter value according to the speed of 5 db/s.
In the embodiment of the invention, under the condition that a touch pen clicks a target item on a touch screen of the electronic equipment, the rotation angle of the touch pen and the duration of the touch pen at a rotation end position are determined; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration. According to the embodiment of the invention, a user can finish the adjustment of the target parameters only by rotating the touch pen under the condition of clicking the target item, and the target item does not need to be clicked for multiple times by using the touch pen, so that the parameter adjustment efficiency is improved. In addition, the target adjusting speed of the target parameter can be flexibly adjusted through the current first parameter value of the target parameter corresponding to the target item, the first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotating position, and the rotating angle, and the adjusting efficiency of the target parameter is improved.
Example III
Referring to fig. 10, a block diagram of an electronic device 300 according to a third embodiment of the present invention is shown, which may specifically include:
a first determining module 301, configured to determine, when a stylus clicks a target item on a touch screen of the electronic device, a rotation angle of the stylus and a duration of time that the stylus is at a rotation end position;
a second determining module 302, configured to determine a target adjustment speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen when the touch pen is at a rotation initial position, and the rotation angle;
an adjustment module 303, configured to adjust the target parameter to a second parameter value according to the target adjustment speed and the duration.
Optionally, the second determining module includes:
the first determining submodule is used for determining the unit adjusting speed of the target parameter according to the current first parameter value of the target parameter corresponding to the target item and a first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotating position;
and the second determining submodule is used for determining the target adjusting speed of the target parameter according to the unit adjusting speed and the rotating angle.
Optionally, the first determining module includes:
a third determining submodule, configured to determine a rotation angle of the stylus and a duration of time that the stylus is at a rotation termination position when the stylus clicks a target item on a touch screen of the electronic device and rotates in a target direction with a click of the stylus at the target item as a fixed point;
the second determining module includes:
a fourth determining sub-module, configured to determine a target adjustment speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch screen and the target direction when the stylus is at a rotation initial position, and the rotation angle;
wherein the target direction is used to indicate an increase or decrease of the target parameter.
Optionally, in the case that the target direction is used to indicate an increase of the target parameter and/or the target item is used to indicate an increase of the target parameter, the first determining submodule comprises:
the first acquisition unit is used for acquiring the maximum value corresponding to the target parameter;
a first determining unit configured to determine a first difference between the maximum value and the first parameter value;
A second determining unit, configured to determine a second difference between a preset maximum angle value and the first angle, where the preset maximum angle value is a maximum angle value between the stylus and the touch screen;
a third determining unit configured to determine a unit adjustment speed of the target parameter according to the first difference and the second difference;
in case the target direction is used to indicate a decrease of the target parameter and/or the target item is used to indicate a decrease of the target parameter, the first determination submodule comprises:
the second acquisition unit is used for acquiring the minimum value corresponding to the target parameter;
a fourth determining unit configured to determine a third difference between the first parameter value and the minimum value;
a fifth determining unit, configured to determine a fourth difference value between the first angle and a preset minimum angle value, where the preset minimum angle value is a minimum angle value between the stylus and the touch screen;
and a sixth determining unit configured to determine a unit adjustment speed of the target parameter according to the third difference and the fourth difference.
Optionally, the adjusting module includes:
a fifth determining submodule, configured to determine an adjustment value of the target parameter according to the target adjustment speed and the rotation duration;
A first calculation sub-module, configured to add the first parameter value to the adjustment value to obtain a second parameter value after adjustment of the target parameter, where the target direction is used to indicate an increase in the target parameter and/or the target item is used to indicate an increase in the target parameter;
a second calculation sub-module, configured to subtract the first parameter value from the adjustment value to obtain a second parameter value after adjustment of the target parameter when the target direction is used to indicate a decrease in the target parameter and/or the target item is used to indicate a decrease in the target parameter;
and the adjusting sub-module is used for adjusting the target parameter to the second parameter value according to the target adjusting speed.
In the embodiment of the present invention, the electronic device 300 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of fig. 1 and fig. 5, and in order to avoid repetition, a description is omitted here.
In the embodiment of the invention, under the condition that a touch pen clicks a target item on a touch screen of the electronic equipment, the rotation angle of the touch pen and the duration of the touch pen at a rotation end position are determined; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration. According to the embodiment of the invention, a user can finish the adjustment of the target parameters only by rotating the touch pen under the condition of clicking the target item, and the target item does not need to be clicked for multiple times by using the touch pen, so that the parameter adjustment efficiency is improved. In addition, the target adjusting speed of the target parameter can be flexibly adjusted through the current first parameter value of the target parameter corresponding to the target item, the first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotating position, and the rotating angle, and the adjusting efficiency of the target parameter is improved.
Example IV
Figure 11 is a schematic diagram of a hardware architecture of an electronic device implementing various embodiments of the present invention,
the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power source 411. Those skilled in the art will appreciate that the electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
Wherein, the processor 410 is configured to determine a rotation angle of the stylus and a duration of time that the stylus is in a rotation end position when the stylus clicks a target item on a touch screen of the electronic device; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration.
In the embodiment of the invention, under the condition that a touch pen clicks a target item on a touch screen of the electronic equipment, the rotation angle of the touch pen and the duration of the touch pen at a rotation end position are determined; determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle; and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration. According to the embodiment of the invention, a user can finish the adjustment of the target parameters only by rotating the touch pen under the condition of clicking the target item, and the target item does not need to be clicked for multiple times by using the touch pen, so that the parameter adjustment efficiency is improved. In addition, the target adjusting speed of the target parameter can be flexibly adjusted through the current first parameter value of the target parameter corresponding to the target item, the first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotating position, and the rotating angle, and the adjusting efficiency of the target parameter is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, receiving downlink data from a base station and then processing the received downlink data by the processor 410; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 402, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 400. The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive an audio or video signal. The input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, the graphics processor 4041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphics processor 4041 may be stored in memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode.
The electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 405 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 406 is used to display information input by a user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. The touch panel 4071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 4071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 410, and receives and executes commands sent from the processor 410. In addition, the touch panel 4071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 407 may include other input devices 4072 in addition to the touch panel 4071. In particular, other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 4071 may be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or thereabout, the touch operation is transferred to the processor 410 to determine the type of touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of touch event. Although in fig. 11, the touch panel 4071 and the display panel 4061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 4071 may be integrated with the display panel 4061 to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 408 is an interface to which an external device is connected to the electronic apparatus 400. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
Memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 409 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 409 and invoking data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may also include a power supply 411 (e.g., a battery) for powering the various components, and preferably the power supply 411 may be logically connected to the processor 410 via a power management system that performs functions such as managing charging, discharging, and power consumption.
In addition, the electronic device 400 includes some functional modules, which are not shown, and are not described herein.
Preferably, the embodiment of the present invention further provides an electronic device, including a processor 410, a memory 409, and a computer program stored in the memory 409 and capable of running on the processor 410, where the computer program when executed by the processor 410 implements each process of the above-mentioned parameter adjustment method embodiment, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes each process of the parameter adjustment method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (11)

1. A method for adjusting parameters, applied to an electronic device, the method comprising:
determining a rotation angle of a touch pen and a duration time of the touch pen in a rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment;
determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle;
and adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration.
2. The method according to claim 1, wherein the determining the target adjustment speed of the target parameter according to the current first parameter value of the target parameter corresponding to the target item, the first angle between the stylus and the touch screen when the stylus is in the initial rotation position, and the rotation angle includes:
Determining a unit adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item and a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position;
and determining the target regulating speed of the target parameter according to the unit regulating speed and the rotating angle.
3. The method of claim 2, wherein the determining the angle of rotation of the stylus and the duration of time the stylus is in a rotation end position if the stylus clicks on a target item on a touch screen of the electronic device comprises:
determining a rotation angle of the touch pen and a duration time of the touch pen in a rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment and rotates along a target direction by taking a clicking position of the touch pen on the target item as a fixed point;
the determining, according to the current first parameter value of the target parameter corresponding to the target item, the first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotation position, and the rotation angle, the target adjustment speed of the target parameter includes:
Determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the target direction and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle;
wherein the target direction is used to indicate an increase or decrease of the target parameter.
4. A method according to claim 3, wherein, in case the target direction is used to indicate an increase of the target parameter and/or the target item is used to indicate an increase of the target parameter, determining the unit adjustment speed of the target parameter based on the current first parameter value of the target parameter corresponding to the target item and the first angle between the stylus and the touch screen in the case of a rotational initial position comprises:
obtaining a maximum value corresponding to the target parameter;
determining a first difference between the maximum value and the first parameter value;
determining a second difference value between a preset maximum angle value and the first angle, wherein the preset maximum angle value is the maximum angle value between the touch pen and the touch screen;
Determining a unit adjustment speed of the target parameter according to the first difference value and the second difference value;
in the case that the target direction is used for indicating the decrease of the target parameter and/or the target item is used for indicating the decrease of the target parameter, determining the unit adjustment speed of the target parameter according to the current first parameter value of the target parameter corresponding to the target item and the first angle between the touch pen and the touch screen when the touch pen is in the initial rotation position includes:
acquiring a minimum value corresponding to the target parameter;
determining a third difference between the first parameter value and the minimum value;
determining a fourth difference value between the first angle and a preset minimum angle value, wherein the preset minimum angle value is a minimum angle value between the touch pen and the touch screen;
and determining the unit adjusting speed of the target parameter according to the third difference value and the fourth difference value.
5. The method of claim 4, wherein said adjusting said target parameter to a second parameter value based on said target adjustment speed and said duration comprises:
determining an adjustment value of the target parameter according to the target adjustment speed and the duration;
Adding the first parameter value to the adjustment value to obtain a second parameter value after adjustment of the target parameter, in case the target direction is used for indicating an increase of the target parameter and/or the target item is used for indicating an increase of the target parameter;
subtracting the first parameter value from the adjustment value to obtain a second parameter value after adjustment of the target parameter, in the case that the target direction is used for indicating the decrease of the target parameter and/or the target item is used for indicating the decrease of the target parameter;
and adjusting the target parameter to the second parameter value according to the target adjusting speed.
6. An electronic device, the electronic device comprising:
the first determining module is used for determining the rotation angle of the touch pen and the duration time of the touch pen in a rotation end position under the condition that the touch pen clicks a target item on a touch screen of the electronic equipment;
the second determining module is used for determining a target adjusting speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch pen and the touch screen under the condition that the touch pen is at a rotation initial position, and the rotation angle;
And the adjusting module is used for adjusting the target parameter to a second parameter value according to the target adjusting speed and the duration.
7. The electronic device of claim 6, wherein the second determination module comprises:
the first determining submodule is used for determining the unit adjusting speed of the target parameter according to the current first parameter value of the target parameter corresponding to the target item and a first angle between the touch pen and the touch screen under the condition that the touch pen is at the initial rotating position;
and the second determining submodule is used for determining the target adjusting speed of the target parameter according to the unit adjusting speed and the rotating angle.
8. The electronic device of claim 7, wherein the first determination module comprises:
a third determining submodule, configured to determine a rotation angle of the stylus and a duration of time that the stylus is at a rotation termination position when the stylus clicks a target item on a touch screen of the electronic device and rotates in a target direction with a click of the stylus at the target item as a fixed point;
the second determining module includes:
A fourth determining sub-module, configured to determine a target adjustment speed of the target parameter according to a current first parameter value of the target parameter corresponding to the target item, a first angle between the touch screen and the target direction when the stylus is at a rotation initial position, and the rotation angle;
wherein the target direction is used to indicate an increase or decrease of the target parameter.
9. The electronic device of claim 8, wherein the first determination submodule, in case the target direction is used to indicate an increase of the target parameter and/or the target item is used to indicate an increase of the target parameter, comprises:
the first acquisition unit is used for acquiring the maximum value corresponding to the target parameter;
a first determining unit configured to determine a first difference between the maximum value and the first parameter value;
a second determining unit, configured to determine a second difference between a preset maximum angle value and the first angle, where the preset maximum angle value is a maximum angle value between the stylus and the touch screen;
a third determining unit configured to determine a unit adjustment speed of the target parameter according to the first difference and the second difference;
In case the target direction is used to indicate a decrease of the target parameter and/or the target item is used to indicate a decrease of the target parameter, the first determination submodule comprises:
the second acquisition unit is used for acquiring the minimum value corresponding to the target parameter;
a fourth determining unit configured to determine a third difference between the first parameter value and the minimum value;
a fifth determining unit, configured to determine a fourth difference value between the first angle and a preset minimum angle value, where the preset minimum angle value is a minimum angle value between the stylus and the touch screen;
and a sixth determining unit configured to determine a unit adjustment speed of the target parameter according to the third difference and the fourth difference.
10. The electronic device of claim 9, wherein the adjustment module comprises:
a fifth determining submodule, configured to determine an adjustment value of the target parameter according to the target adjustment speed and the duration;
a first calculation sub-module, configured to add the first parameter value to the adjustment value to obtain a second parameter value after adjustment of the target parameter, where the target direction is used to indicate an increase in the target parameter and/or the target item is used to indicate an increase in the target parameter;
A second calculation sub-module, configured to subtract the first parameter value from the adjustment value to obtain a second parameter value after adjustment of the target parameter when the target direction is used to indicate a decrease in the target parameter and/or the target item is used to indicate a decrease in the target parameter;
and the adjusting sub-module is used for adjusting the target parameter to the second parameter value according to the target adjusting speed.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to perform the steps of the parameter adjustment method according to any one of claims 1 to 5.
CN202010109123.4A 2020-02-21 2020-02-21 Parameter adjustment method and electronic equipment Active CN111338489B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010109123.4A CN111338489B (en) 2020-02-21 2020-02-21 Parameter adjustment method and electronic equipment
PCT/CN2021/077025 WO2021164760A1 (en) 2020-02-21 2021-02-20 Parameter adjustment method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010109123.4A CN111338489B (en) 2020-02-21 2020-02-21 Parameter adjustment method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111338489A CN111338489A (en) 2020-06-26
CN111338489B true CN111338489B (en) 2024-03-22

Family

ID=71185433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010109123.4A Active CN111338489B (en) 2020-02-21 2020-02-21 Parameter adjustment method and electronic equipment

Country Status (2)

Country Link
CN (1) CN111338489B (en)
WO (1) WO2021164760A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338489B (en) * 2020-02-21 2024-03-22 维沃移动通信有限公司 Parameter adjustment method and electronic equipment
CN112198996B (en) * 2020-09-04 2023-08-01 深圳市中视典数字科技有限公司 Rotation angle acquisition method and device and computer readable storage medium
CN114578989A (en) * 2022-01-18 2022-06-03 清华大学 Man-machine interaction method and device based on fingerprint deformation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918121A (en) * 2014-03-13 2015-09-16 阿里巴巴集团控股有限公司 Media stream play control method and client
WO2018098960A1 (en) * 2016-12-01 2018-06-07 华为技术有限公司 Method for operating touchscreen device, and touchscreen device
CN108572765A (en) * 2018-04-20 2018-09-25 北京硬壳科技有限公司 Touch control identification method and device
CN110456959A (en) * 2019-07-31 2019-11-15 维沃移动通信有限公司 A kind of control method and terminal of terminal
CN110806832A (en) * 2019-10-24 2020-02-18 维沃移动通信有限公司 Parameter adjusting method and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140035886A1 (en) * 2012-07-31 2014-02-06 Research In Motion Limited Apparatus and Method to Determine an Angle of Inclination and/or Rotation of a Stylus
US9448643B2 (en) * 2013-03-11 2016-09-20 Barnes & Noble College Booksellers, Llc Stylus sensitive device with stylus angle detection functionality
JP2015225527A (en) * 2014-05-28 2015-12-14 株式会社東芝 Electronic apparatus, method and program
EP3144774A1 (en) * 2015-09-15 2017-03-22 Thomson Licensing Methods and apparatus of transmitting a rotation angle information to a set of actuators associated with a surface
CN111338489B (en) * 2020-02-21 2024-03-22 维沃移动通信有限公司 Parameter adjustment method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918121A (en) * 2014-03-13 2015-09-16 阿里巴巴集团控股有限公司 Media stream play control method and client
WO2018098960A1 (en) * 2016-12-01 2018-06-07 华为技术有限公司 Method for operating touchscreen device, and touchscreen device
CN108572765A (en) * 2018-04-20 2018-09-25 北京硬壳科技有限公司 Touch control identification method and device
CN110456959A (en) * 2019-07-31 2019-11-15 维沃移动通信有限公司 A kind of control method and terminal of terminal
CN110806832A (en) * 2019-10-24 2020-02-18 维沃移动通信有限公司 Parameter adjusting method and electronic equipment

Also Published As

Publication number Publication date
CN111338489A (en) 2020-06-26
WO2021164760A1 (en) 2021-08-26

Similar Documents

Publication Publication Date Title
CN108073343B (en) display interface adjusting method and mobile terminal
CN107734175B (en) Notification message prompting method and mobile terminal
CN111142991A (en) Application function page display method and electronic equipment
CN111338489B (en) Parameter adjustment method and electronic equipment
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN109508136B (en) Display method of application program and mobile terminal
CN106445340B (en) Method and device for displaying stereoscopic image by double-screen terminal
CN109407949B (en) Display control method and terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN107741814B (en) Display control method and mobile terminal
CN111443815A (en) Vibration reminding method and electronic equipment
CN111651030B (en) Sensor detection method and device, storage medium and mobile terminal
CN111240567B (en) Display screen angle adjusting method and electronic equipment
CN109597546B (en) Icon processing method and terminal equipment
CN111443860B (en) Touch control method and electronic equipment
CN111261128B (en) Screen brightness adjusting method and electronic equipment
CN111328132B (en) Method for adjusting transmitting power and electronic equipment
CN109739430B (en) Display method and mobile terminal
CN108696638B (en) Control method of mobile terminal and mobile terminal
CN111273793A (en) Display method and electronic equipment
CN110719531A (en) Video playing progress adjusting method and electronic equipment
CN111240549B (en) Display control method, electronic device, and medium
CN110928462B (en) Display method and electronic equipment
CN111045588B (en) Information viewing method and electronic equipment
CN109828703B (en) Content selection method and terminal equipment

Legal Events

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